I have also tried to escape "&" or "&#", e.g. replacing "&" with
"&" or "&" etc, but none of them work.

On Oct 16, 5:18 pm, qmwestview <[email protected]> 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
> "&#32422;&#20811;&#23567;"
>
> When I use setText("...") to show them inTextView, they are shown in
> their original form, rather than the characters they represent. If I
> use their equivalent form of UTF-8, i.e. "\u7ea6\u514b\u5C0f", they
> then are shown correctly as "约克小"。
>
> My questions are:
>
> 1. How to receive the data in "UTF-8" rather than decimalunicode? (I
> tried InputStreamReader(inputStream, "UTF-8") but seems not working)
>
> or
>
> 2. How to send the data in "UTF-8" for Android rather than decimalunicode(the 
> same decimalunicodework fine for browser)?
>
> or
>
> 3. Is there any function which can turn decimalunicodestring into
> UTF-8 string?
>
> 4. Any other advice please?
>
> Many thanks in advance,
>
> qmwestview
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to