[jdom-interest] How do I set encoding on blank document

Jason Hunter jhunter at acm.org
Wed Aug 7 09:00:16 PDT 2002

The encoding is set in the XMLOutputter.  So set it on the way out to
specify how you'd like it encoded as bytes.

For reading data, it's returned as strings so there's no real need to
bother with encodings.  The builder should have decoded the chars


mark.stephens at ukonline.co.uk wrote:
> I am using jdom to create a blank document which I then add content to. How
> can I set the encoding which I want to be used?
> Alternatively, when I extract data by gettting a list of elements and then
> reading the attributes/values, how can I choose the encoding for this data (I
> want ISO8859, not UTF-8).
> Any advice, please?
> MArk
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com

More information about the jdom-interest mailing list