[jdom-interest] illegal character in JDOM

Jason Hunter jhunter at servlets.com
Tue Jan 20 11:54:38 PST 2004

> I have a problem regarding the encoding of the JDOM.  Is there a way to 
> change the encoding to IS0-8859-1 when creating a JDOM document?  As the 
> string data I am getting from the database may contains 0x1a character.  
> Anyone know how to strip that character  in a string also appreciated.

XMLOutputter lets you select an encoding.  It uses UTF-8 by default. 
SAX doesn't tell JDOM which encoding the original document used, so we 
just do a sensible default.


More information about the jdom-interest mailing list