W3C home > Mailing lists > Public > public-html@w3.org > February 2008

RE: several messages about handling encodings in HTML

From: Brian Smith <brian@briansmith.org>
Date: Fri, 29 Feb 2008 09:17:11 -0800
To: "'HTML WG'" <public-html@w3.org>
Message-ID: <005301c87af6$ec06a0e0$6401a8c0@T60>

Geoffrey Sneddon wrote:
> I don't see anything making a BOM illegal in 
> UTF-16LE/UTF-16BE, in fact, the only mention I find of it 
> with regards to either in Unicode 5.0 is "In UTF-16(BE|LE), 
> an initial byte sequence <(FE FF|FF FE)> is interpreted as 
> U+FEFF zero width no-break space."

Right, a BOM cannot appear in a -BE/-LE document. The Unicode 5.0
specification has seperate recommendations for when to produce a -BE/-LE
document with a leading U+FEFF (don't do it), and how to process
documents that disregard that reocmmendation (treat it as a ZWNBS).

- Brian
Received on Friday, 29 February 2008 17:17:20 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:30 UTC