File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes Non-English characters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Non-English characters" Watch "Non-English characters" New topic

Non-English characters

Alagu Seenivasan

Joined: Sep 30, 2000
Posts: 18
How do you handle non-english characters ?
I have to parse the following
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
It does not work either .
Any ideas ? Is it something to do with the parser ?

Alagu Seenivasan

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:
subject: Non-English characters
It's not a secret anymore!