You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by da...@us.ibm.com on 2004/08/02 21:13:15 UTC
Re: output of transform with utf-16
> experimenting with utf-16 output of transform. I observed that the first
two bytes are always ascii 254, 255.
> What's the meaning of these bytes? And the more important question: can I
count on this two bytes heading
> each utf-16 object? With other words: Can I always skip the first two
bytes of the Output-Stream of transform?
Those two bytes are the UTF-16 Byte Order Mark (BOM) and must be present in
documents serialized in the UTF-16. Without them, an XML parser will
reject the document, because it is not well-formed.
Dave