Re: byte order mark article

Leif Halvard Silli scripsit:

> > Note also that an XML document in UTF16-BE or UTF16-LE must have an
> > XML declaration saying so.
> 
> That requirement exists only when there is no external protocol:  

True.

> 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.

It does not default to the UTF-16LE encoding, but to the UTF-16 encoding
with little-endian interpretation.  These are two different things, though
often confused.

-- 
It was impossible to inveigle           John Cowan <cowan@ccil.org>
Georg Wilhelm Friedrich Hegel           http://www.ccil.org/~cowan
Into offering the slightest apology
For his Phenomenology.                      --W. H. Auden, from "People" (1953)

Received on Thursday, 22 November 2012 01:45:39 UTC