W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2004

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

From: <jcowan@reutershealth.com>
Date: Wed, 4 Feb 2004 17:26:46 -0500
To: Philippe Le Hegaret <plh@w3.org>
Cc: Kasimier Buchcik <kbuchcik@4commerce.de>, WWW DOM <www-dom@w3.org>
Message-ID: <20040204222646.GB10274@skunk.reutershealth.com>

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
                I am a member of a civilization. --David Brin
Received on Wednesday, 4 February 2004 17:27:12 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:12 UTC