Fix typo.
authorChris Hanson <org/chris-hanson/cph>
Tue, 24 Feb 2004 20:48:32 +0000 (20:48 +0000)
committerChris Hanson <org/chris-hanson/cph>
Tue, 24 Feb 2004 20:48:32 +0000 (20:48 +0000)
v7/src/xml/xml-output.scm

index c9f83394c85240aced6ef7175c9401937a884d66..8009307ce7531d3ac7c692ffbc53f925015f94b3 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: xml-output.scm,v 1.30 2004/02/24 20:36:25 cph Exp $
+$Id: xml-output.scm,v 1.31 2004/02/24 20:48:32 cph Exp $
 
 Copyright 2001,2002,2003,2004 Massachusetts Institute of Technology
 
@@ -39,9 +39,10 @@ USA.
 
 (define (set-coding xml port)
   (port/set-coding port
-                  (normalize-coding port
-                                    (and (xml-document? xml)
-                                         (xml-document-declaration xml))))
+                  (or (normalize-coding port
+                                        (and (xml-document? xml)
+                                             (xml-document-declaration xml)))
+                      'UTF-8))
   (port/set-line-ending port 'TEXT))
 
 (define (xml->wide-string xml . options)