permaculture playing cards
The moose likes Java in General and the fly likes Error in handling Unicode in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Error in handling Unicode in java" Watch "Error in handling Unicode in java" New topic

Error in handling Unicode in java

Naga venkateswara Rao

Joined: Dec 16, 2009
Posts: 7
I have some unicode characters in a CSV file and need to be encoded to be able to complete my task. Currently, I'm getting exception as - org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x19) was found in the CDATA section.

Africa’s - Replace "€™"
Africas - Replace ""
Ramesses’ (Six references) - Replace "’"

Can some one have ideas on resolving it?

Lester Burnham

Joined: Oct 14, 2008
Posts: 1337
How is a CSV file related to XML data?
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13018
What created the text in the first place?

0x19 is "end of medium" also called "end of file" - you should be able to pull the line# and character# from the SAXParseException to get a hint as to where it came from.

I agree. Here's the link:
subject: Error in handling Unicode in java
It's not a secret anymore!