[jdom-interest] special characters breaking parse??

Jason Hunter jhunter at collab.net
Fri Jan 26 11:29:02 PST 2001

markus_tripp at sonynetservices.com wrote:
> Note: The output method of XMLOutputter uses the character encodings
> implemented by the Java platform. They vary between different
> implementation. For example the US-only version of Suns Java 2 SE v 1.3
> supports the following encodings:
> Cp1252 (Windows Latin-1)
> ISO8859_1
> UTF8
> UTF-16
> UnicodeBid
> UnicodeBigUnmarked
> UnicodeLittle
> UnicodeLittleUnmarked
> For more information see:
> http://java.sun.com/j2se/1.3/docs/guide/intl/encoding.doc.html

XMLOutputter by default writes UTF-8, a nice charset because it can
write all Unicode characters.  If you're using ISO-8859-1 (Latin-1)
which is common for Western European languages, you might want to set
that after constructing the outputter.


More information about the jdom-interest mailing list