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 with a nekohtml sax filter, then display the result in
some view with something like:

myString.getBytes("iso-8859-1")

This is working pretty good on some devices, but in some other, like all my
AVD, the french "é" "è" etc. characters are incorrectly displayed. More
strangely, it is working on my HTC Hero, but not on my wife's own HTC Hero
(not bought at same place). I tried to change the locale to "french" on the
AVD but it did not changed anything.

On these devices, it seems that using directly myString ( or
myString.getBytes("UTF8") ) is correct.

I see other applications that seems to handle this issue by providing an
option "force UTF8", but i would prefer definitly a generic one!

Any clue?
-- 
Thierry.

-- 
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