How do I ignore unrecognized characters which come back from web service?

Posted by Jay Askren on Stack Overflow See other posts from Stack Overflow or by Jay Askren
Published on 2010-04-16T02:45:07Z Indexed on 2010/04/16 2:53 UTC
Read the original article Hit count: 292

Filed under:
|
|
|
|

I am working on an app which calls a rest web service. Sometimes the xml responses contain characters which the phone can not understand. When displaying these characters, an empty box is displayed instead. I would like to filter out these characters. How can I detect if a character will be able to be displayed on the screen?

© Stack Overflow or respective owner

Related posts about android

Related posts about Xml