[jdom-interest] parser replaces unicodes through ?'s

Muhle, Daniel Daniel.Muhle at mettenmeier.de
Thu Nov 30 00:15:03 PST 2000

Hi there,

I had the same problem with german umlaute. To get the correct characters in
my XML-Output I used the following lines:
	XMLOutputter fmt = new XMLOutputter("   ", true,"ISO-8859-1");
With this instruction you'll get the following 'header'
	<?xml version="1.0" encoding="ISO-8859-1"?>
and  correctly displayed characters.

BTW is the <?xml version="1.0" encoding="ISO-8859-1"?> - Tag some kind of PI
you could add to the document?

> Mit freundlichen Grüßen:
> Daniel Muhle
> Mettenmeier GmbH
> -Abteilung Software-
> mailto:daniel.muhle at mettenmeier.de
> http://www.mettenmeier.de

More information about the jdom-interest mailing list