• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error in handling Unicode in java

 
Naga venkateswara Rao
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How is a CSV file related to XML data?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic