Hi,
I am implementing an standalone client/server protocol to make one of my
games online capable. One of the problems I have found is that some
strings passwed between client and server may have characters that must
be encoded on UTF-8 (like spanish ñ for example).
The first thing I though was
On the Android side, at the most basic level, you can use:
byte[] b = String.getBytes(utf-8)
String s = new String(b, utf-8)
to convert back and forth.
UTF-8 encoding is designed in such a way that it won't interfere with
regular ASCII characters, including special ones that may have meaning
2 matches
Mail list logo