[jdom-interest] Set encoding type in document?

Jason Hunter jhunter at apache.org
Wed Mar 27 00:22:58 PST 2002

> is it possible to set the encoding type in the build document?

Only on XMLOutputter because that's the only time the encoding matters.

> I know there is the XMLOutputter with the method setEncoding but for my
> purpose (transform XML + XSL -> HTML) I use DOMOutputter.

The chars are given as chars to DOM, so you don't need an encoding which
would handle char to byte translations.  After it's in DOM, if you want
to output you have to use DOM mechanisms.


More information about the jdom-interest mailing list