[jdom-interest] XML Encoding

Jason Hunter jhunter at collab.net
Mon Dec 18 09:34:04 PST 2000


> How do a make JDom keep the original encoding?

JDOM isn't told the original encoding.  Nothing we can do there.

> How do I set the required encoding??

Read the docs of the XMLOutputter class you're using.  Methods with
names like setEncoding() should stick out as likely prospects.  (The
document text is stored in Unicode so it's a property of the outputter
what encoding it's written in, just like elsewhere in Java.)

-jh-



More information about the jdom-interest mailing list