XMLByte does not represent a "one byte" character, it just represents one
byte.  Xerces-C will infer the encoding from a byte stream (whether from a
file or a memory buffer) according the to algorithm described at
http://www.w3.org/TR/REC-xml.html#sec-guessing

Either your memory buffer needs to start with the UTF-16 Big Endian byte
order mark (0xFE 0xFF) or you need to have an explicit xml declaration in
the very first bytes, then Xerces-C will be able to infer that the byte
stream is a stream of UTF-16 characters.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to