[Expat-discuss] Actual encoding used

Karl Waclawek karl at waclawek.net
Tue Dec 30 12:34:11 EST 2003


> How can I what encoding was used. I can look in XMLDecl, but encoding
> name sometimes is not enough. I.e. 'utf-16' can meen both utf-16le or
> utf-16be.

If it is UTF-16 the first character must be a byte order mark.
This will tell you which one it is, LE or BE.

Karl



More information about the Expat-discuss mailing list