Re: writeToString, write and, UTF-16[BE|LE] (was: "LSSerializer.writeToString - what encoding declaration?")

Philippe Le Hegaret scripsit:

> As indicated in
> XML, entities encoded in UTF-16 MUST begin with the Byte Order Mark, so
> I see no reason why the value of the XML declaration encoding should
> contain "UTF-16BE" or "UTF-16LE", especially since this introduces some
> interoperability troubles.

That means that entities encoded in the encoding named "UTF-16" must begin
with a BOM.  Entities in the encodings "UTF-16BE" and "UTF-16LE" must not
begin with a BOM, but must have an appropriate encoding declaration.

-- 
John Cowan
        jcowan@reutershealth.com
                I am a member of a civilization. --David Brin

Received on Wednesday, 4 February 2004 17:27:12 UTC