wood burning stoves 2.0*
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
Author

Error in handling Unicode in java

Naga venkateswara Rao
Greenhorn

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?

Thanks
Lester Burnham
Rancher

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

Joined: Mar 22, 2000
Posts: 12769
    
    5
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.

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error in handling Unicode in java