[android-developers] Re: How to display unicode text received from a web API

2010-02-01 Thread Bob Kerns
How are you parsing the XML? It's the XML parser's job to understand this stuff, not yours. If you're taking the XML as text and trying to understand it -- don't. For example, DOM gives you getData() on a Text node, SAX informs you via a characters(...) method call, and XMLPull offers you

Re: [android-developers] Re: How to display unicode text received from a web API

2010-02-01 Thread Tommy Hartz
Is the text being ommited when it is being sent from your webservice or are you getting the full correct text back to android then android is omitting stuff? On Mon, Feb 1, 2010 at 1:51 PM, Bob Kerns r...@acm.org wrote: How are you parsing the XML? It's the XML parser's job to understand this

Re: [android-developers] Re: How to display unicode text received from a web API

2010-02-01 Thread Kevin Duffey
I have a similar issue.. have not yet looked into it, but we have some characters with accents and such that at least in LogCat don't show up correctly. I expected as much from LogCat tho. I have, however, seen them also not show up in displaying them as text in an overlay on a map. I am using xml

[android-developers] Re: How to display unicode text received from a web API

2010-02-01 Thread Bob Kerns
That reminds me -- check that your web server is setting the encoding to UTF-8. And that you are consistently processing it as either uninterpreted bytes or as UTF-8. Anything else is insane in the modern world, but you'd be surprised at how often people configure web servers to use some other