How do I detect unicode characters in a Java string to resolve sax parser exception

Posted by Madhumita on Stack Overflow See other posts from Stack Overflow or by Madhumita
Published on 2010-05-28T03:55:38Z Indexed on 2010/05/28 4:01 UTC
Read the original article Hit count: 318

Filed under:

Suppose I have a string that contains '¿'. How would I find all those unicode characters? Should I test for their code? How would I do that?

I want to detect it to avoid sax parser exception which I am getting it while parsing the xml saved as a clob in oracle 10g database.

Exception javax.servlet.ServletException: org.xml.sax.SAXParseException: Invalid byte 1 of 1-byte UTF-8 sequence.

© Stack Overflow or respective owner

Related posts about java