Android Question SaxParser and special characters

MotoMusher

Active Member
Licensed User
Longtime User
What's the best way to handle special characters that SaxParser does not recognize?

I have the following string being returned to me, and the parser chokes on it. From what I can tell, it is valid XML. I am can't to put a catch block around the saxparser call itself as the lines I need are the ones preceeding this line, and the line after. This particular line is not a necessary part of the document from my end, but I don't have control of that.

<messageText>Goeiem&ocirc;re ons begin nou!</messageText>

Error I am getting is:
org.apache.harmony.xml.ExpatParser$ParseException: At line 18, column 43: undefined entity

Same error with &uuml;

Thanks.
 
Last edited:
Top