File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
How to store swedish characters in Solid database
Swedish Language?
Tomcat file upload, UTF-8 and Linux
GregorianDate and week_number
HTML Form Upload produces junk characters