[jdom-interest] Problems with language-specific characters :-(

Mattias Reichel mattias at originalab.se
Wed Nov 12 02:28:34 PST 2003


The xml declaration of your xml file states that it is in UTF-8 encoding
when the file in fact is in ISO-8859-1 encoding.

If you change the xml declaration to
<?xml version="1.0" encoding="ISO-8859-1"?>
it should read just fine.

Or make sure the program that outputs the file uses UTF-8 encoding.

Hope this helps.
/Mattias Reichel
 
> -----Original Message-----
> From: jdom-interest-admin at jdom.org [mailto:jdom-interest-admin at jdom.org]
> On Behalf Of Clemens Eisserer
> Sent: den 12 november 2003 10:13
> To: jdom-interest at jdom.org
> Subject: [jdom-interest] Problems with language-specific characters :-(
> 
> Hi there!
> 
> I´m new to JDOM and I use it because I needed easy access to XML for
> exchanging data. Its reall great!
> 
> I´ve a problem with language-specific characters (ä,ö,ü - dont know if
> your computer can display this correctly).
> They are written with JDOM correctly, but when I want to read them, I
> get the following exception:
> 
> Error on line1of document file "file-path": Zeichenumwandlungsfehler
> (character transformation failed): "UTF-8 encoding of character
> 0x001aeba5 can´t be converted to Unicode (Zeilenzahl möglicherweise zu
> gering (=maybe not enough lines)).
> 
> Does anybody know whats wrong? I´ve added the xml-file in which this
> error occours, of course.
> I´m using jdom-beta9....
> 
> Thanks, lg Clemens
> 




More information about the jdom-interest mailing list