[jdom-interest] Problem with JDOM and euro character

Arnaud Dupuis arnaud.dupuis at silogic.fr
Thu Aug 29 02:58:15 PDT 2002


Hi,

I have an xml file including euro characters (€) and starting with :
<?xml version="1.0" encoding="ISO-8859-1"?>
as it should probably be.

However, my problem is that (JDOM and) SAXBuilder doesn't recognize the euro characters and replace them by an unknown character '?' when I do a 

String str = sthg.getChild( "Valeur" ).getTextTrim();

and print the str in the console or in a file.

What's wrong and how can I solve it?
Thanks in advance. 


NB: I working with the jdk1.4 and the JVM support the € character.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20020829/da4e4f93/attachment.htm


More information about the jdom-interest mailing list