[jdom-interest] Getting original Encoding and changing the defau lt UTF-8

Jason Hunter jhunter at xquery.com
Thu Sep 9 23:53:19 PDT 2004

> How can the original encoding in a document be accessed via JDOM?  Don't see
> any method calls concerning the encoding setting except with the output
> formatter.

Sadly you can't because SAX doesn't expose this.

> Also, is there are way to set the default encoding to something other than
> UTF-8?

XMLOutputter takes a Format object that has a setEncoding() method.


More information about the jdom-interest mailing list