[I18n-sig] XML and UTF-16

M.-A. Lemburg mal@lemburg.com
Thu, 31 May 2001 19:13:03 +0200

What is the standard file layout to use for storing an XML file
in UTF-16 ?

1) encode the whole file in UTF-16 (possibly prepended with a BOM)


2) write the first line containing the XML header (which has the
   encoding information) in ASCII and then proceed with UTF-16
   starting after the newline character


3) none of the above: you simply don't do this ;-)

Marc-Andre Lemburg
CEO eGenix.com Software GmbH
Company & Consulting:                           http://www.egenix.com/
Python Software:                        http://www.lemburg.com/python/