RE: [xml-dev] FInding encoding

From
Michael Kay <>
To
'Ravi Shankar Nair' <>, 'XML Developers List' <>
Date
2005-12-20T23:16:29
Thread
RE: [xml-dev] FInding encoding
> Given an XML file, how can I find the encoding of it? Please 
> give me some 
> APi by which I can know what encoding is used for that XML.

Most APIs don't tell you the encoding, because you don't need to know: by
the time your application sees the content, it has been decoded from its
original encoding into the native representation of your programming
language.

Michael Kay
http://www.saxonica.com/