As the title says... Chat on...

User avatar
By Trilex
#13716 Hiho,

I have a problem with encoding ( i think). I send a Text, from an android device, via UDP to the ESP8266. At the android device I create the String and convert it to Byte.
Code: Select allmessageString.getBytes( "UTF-8" );


Almost everything works finde, but If i send an "ü" I get an "ü".
I try too google the problem and find out, that it is a problem with UTF-8 and ISO-8859 but I donT know what to do to correct it.

Any tips?

Thanks &
greetings
alex
User avatar
By TerryE
#13774 UTF-8 is just a byte-wide encoding of UTF. You want have a problem with UTF-8 as long as you use it on all of your devices. The problem comes when you are taking data from a web page which is UTF-8 encoded and displaying it on a system which uses ISO-8859.

You have to translate character set whenever you change them. That's the case on any computer. It's just that doing this on the ESP8266 is difficult, because of lack of conversion libraries that will run within the memory limitation of the ESP 8266.

I use UTF-8 as my default charset on my Linux PC and I don't have this problem because is UTF-8 everywhere.