[jdom-interest] how to discover the encoding of an XML
jhunter at xquery.com
Fri Jul 23 09:47:23 PDT 2004
SAX doesn't provide this information. SAX decodes the information but
doesn't report on what encoding was used. So SAXBuilder doesn't have
that information available to it.
Terenzio Berni wrote:
> It is possible to know what encoding was used while building a Document
> (via SaxBuilder).
> I have an XML that starts with the declaration:
> <?xml version="1.0" encoding="UTF-8"?>
> and I need to know that the encoding used was UTF-8.
> Regards, Terenzio
More information about the jdom-interest