Re: [android-developers] is charset decoding terminal dependant?? (UTF8/iso-8859-1 question)

2010-04-06 Thread Frank Weiss
Hey, congratulations! I'm glad you figured it out. And it is not the simplest problem to master. On Tue, Apr 6, 2010 at 6:40 PM, Thierry Legras wrote: > Hi, > > After having banged my heads for weeks, i found the problems: > > The issue was not device dependant, but network access dependant. > >

Re: [android-developers] is charset decoding terminal dependant?? (UTF8/iso-8859-1 question)

2010-04-06 Thread Thierry Legras
Hi, After having banged my heads for weeks, i found the problems: The issue was not device dependant, but network access dependant. For some reason the pages encoding when accessed using my mobile operator access are changed to UTF-8, as showed in the ContentType HTTP header (ContentType: text/h

Re: [android-developers] is charset decoding terminal dependant?? (UTF8/iso-8859-1 question)

2010-02-13 Thread Thierry Legras
Thanks for your reply. yes this is a java.lang.String. Indeed all i want to do is to correctly display the string in some View. Ok i got the point about java String being 16 bits. If so, and as it is not well displayed, i guess this means it was not properly created at first. Maybe this issue is

Re: [android-developers] is charset decoding terminal dependant?? (UTF8/iso-8859-1 question)

2010-02-13 Thread Frank Weiss
First, some clarifications. Locale has nothing to do with character encoding. Java stores all character data internally as 16-bit Unicode, regardless of locale. I suspect that myString.getBytes("iso-8859-1") is erroneous. I'm assuming that myString is of type java.lang.String. What are you doing w

[android-developers] is charset decoding terminal dependant?? (UTF8/iso-8859-1 question)

2010-02-13 Thread Thierry Legras
Hello, I'm having troubles to correctly display strings with "é" "è" ... characters extracted from an html page (iso-8859-1). I am reading the html page as iso-8859-1 (using xerces XMLInputSource(null, null, null, myHTTPRequestContent, "iso-8859-1"), searching and extracting some specific strings