*
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


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.
 
GeeCON Prague 2014
 
subject: Swedish characters