[android-developers] Re: Problem to show unicode strings in TextView

2009-10-23 Thread qmwestview
The Html.from(utfStringInDecimalForm).toString() works! Thank you so much Ludovic Perrier!! I have sent an email to Struts' mailing list, hoping they could correct this in the first place. QM --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Problem to show unicode strings in TextView

2009-10-22 Thread ludovic.perrier
Have you try this? (description is text to display) TextViewtv = (TextView) findViewById(R.id.description); tv.setText(Html.fromHtml(description).toString()); On 20 oct, 16:49, qmwestview qmwestv...@googlemail.com wrote: My server side is using Struts (2.1.7). Strangely, the jsp, using struts

[android-developers] Re: Problem to show unicode strings in TextView

2009-10-20 Thread qmwestview
My server side is using Struts (2.1.7). Strangely, the jsp, using struts tags, usually outputs ideally encoded message which can be displayed by Android’s TextView. Only when it comes to using struts’ “iterator” tag, then decimal unicode are sent to the client, which is fine for browser, but

[android-developers] Re: Problem to show unicode strings in TextView

2009-10-18 Thread qmwestview
I have also tried to escape or #, e.g. replacing with #038; or amp; etc, but none of them work. On Oct 16, 5:18 pm, qmwestview qmwestv...@googlemail.com wrote: Hi there, My data (stored as UTF-8 in the SQL db), when arrive at the phone as json strings, appear to be decimalUnicode, such as