Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes XML and Related Technologies and the fly likes Non-English characters Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "Non-English characters" Watch "Non-English characters" New topic
Author

Non-English characters

Alagu Seenivasan
Greenhorn

Joined: Sep 30, 2000
Posts: 18
How do you handle non-english characters ?
I have to parse the following
<Relationship>Cu�ada</Relationship>
I am using xerces to parse. It does not work. The character � is replaced by a ?.
I am trying to convert the xml to a text file.
I tried
<Relationship><![CDATA[Cu�ada]]</Relationship>
It does not work either .
Any ideas ? Is it something to do with the parser ?
Thanks.
Srini.

Alagu Seenivasan
Greenhorn

Joined: Sep 30, 2000
Posts: 18
I changed the header to
<?xml version="1.0" encoding="ISO-8859-1" ?>
Now it works fine.

 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: Non-English characters
 
Similar Threads
XML -> SAX -> MYSQL conversion losing character encoding...
How to replace multibyte characters in a string
Ada Programming
non-english
c:url c:param encoding