W3C home > Mailing lists > Public > www-international@w3.org > October to December 2012

Re: byte order mark article

From: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
Date: Thu, 22 Nov 2012 02:47:05 +0100
To: John Cowan <cowan@mercury.ccil.org>
Cc: www-international@w3.org
Message-ID: <20121122024705667626.987b24ac@xn--mlform-iua.no>
Leif Halvard Silli, Thu, 22 Nov 2012 02:27:31 +0100:
>>  If there is no XML declaration in a 16-bit
>> format document, it is necessarily UTF-16, and XML requires a BOM in
>> that case.
> 
>  First: An external protocol could declare the LE/BE encoding.
> Second: When there is an an external declaration which says "UTF-16",
>         then the requirement to include a BOM is relaxed. The parser
>         could e.g. default to UTF-16LE, as Unicode says.

Uh - meant "to UTF-16BE, as Unicode says", of course.

> [1] http://www.w3.org/TR/2008/REC-xml-20081126/#charencoding
-- 
leif halvard silli
Received on Thursday, 22 November 2012 01:47:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 22 November 2012 01:47:36 GMT