wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes Swedish characters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Swedish characters" Watch "Swedish characters" New topic
Author

Swedish characters

Chris Harris
Ranch Hand

Joined: Sep 21, 2003
Posts: 231
Hi all,
I need to parse an XML file with Swedish characters (� � � � � �). I have tried a CDATA but still fails. It even fails if I added the characters to a comment. Does anyone know a way I can do this?
Thanks
Chris.


SCJP 1.2, SCWCD, SCBCD
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Use the numeric encoding.
For example, Ä becomes Ä


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
By the way, they're "Scandinavian characters" -- not just Swedish
Chris Harris
Ranch Hand

Joined: Sep 21, 2003
Posts: 231
Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Swedish characters
 
Similar Threads
Tomcat file upload, UTF-8 and Linux
GregorianDate and week_number
How to store swedish characters in Solid database
HTML Form Upload produces junk characters
Swedish Language?