[Home] [By Thread] [By Date] [Recent Entries]

  • From: Murata Makoto <mura034@a...>
  • To: xml-dev@l...
  • Date: Fri, 21 Apr 2000 15:46:10 +0900

>if the first line is just
><?xml version = "1.0">
>what does this equate to in terms of encoding ?

If the XML document has a MIME header, the charset parameter 
in the MIME header will determine the encoding.  MIME headers 
are used when documents are delivered by HTTP, SMTP, etc.
More about this issue, see RFC 2376 (XML Media Types)

If the XML document is not associated with a MIME header, the 
document is in UTF-8.  However, when the document actually begins 
with the BOM, the document is in UTF-16.  This is described in 
XML 1.0 (Appendix F).  An up-to-date information is available 
in the official errata list of XML, which is referenced from 
the XML recommendation.

Cheers,

Makoto
 
Internet: mura034@a...
Nifty: VEQ00625

***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member