> 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
- output of transform with utf-16 tschoofs
- david_n_bertoni
