I've got a character stream that I get from a HTTP GET and store it in a 
string.

The retrieve string has encoding w/ unicode escape codes (e.g. ABC\u0028DEF 
etc)

When I take that string and display in a textView - the \u codes are 
displayed as is - not translated to their equivalent ascii.


Now if I take the same string and assign it directly to a string - as 
opposed to getting from an HTTP GET,
the same textView object translates the unicode escape codes and displays 
it correctly.


String retval = HttpClient.get( "https://www.mydomain.com"; );  
textView.setText(retval);   // fails

String retval = "ABC\u0027DEF; textView.setText(retval);   // works

When I print both the retvals - they look similar - both have \u0028



I know this is an encoding issue somewhere.

When I do the HTTP GET - I believe i'm doing it correctly

            in = new java.io.BufferedReader( new 
java.io.InputStreamReader(connection.getInputStream(), "UTF-8") );




Help!





-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to