String Encoding doesn't ouput all characters
Posted
by
AndroidXTr3meN
on Stack Overflow
See other posts from Stack Overflow
or by AndroidXTr3meN
Published on 2012-04-14T11:02:49Z
Indexed on
2012/04/14
11:28 UTC
Read the original article
Hit count: 223
My client uses InputStreamReader/BufferedReader to fetch text from the Internet. However when I save the Text to a *.txt the text shows extra weird special symbols like 'Â'.
I've tried Convert the String to ASCII but that mess upp å,ä,ö,Ø which I use.
I've tried food =
food.replace("Â", ""); and IndexOf();
But string won't find it. But it's there in HEX Editor.
So summary: When I use text.setText
(Android), the output looks fine with NO weird symbols, but when I save the text to *.txt I get about 4 of 'Â'. I do not want ASCII because I use other Non-ASCII character.
The 'Â' is displayed as a Whitespace on my Android and in notepad.
Thanks!
Have A great Weekend!
EDIT* found: in Wordpad
© Stack Overflow or respective owner