java - Android byte to string charset -
i have problem charset convertion:
i have got messages udp server , data this:
byte[] adress= new byte [42];
after try displayed textview :
string str_adress= new string(adress,"utf-8");
instead of "ő" got "?"
how can solve that?
the utf-8 bytes ő
c5 91
.
as
log.v(tag, new string(new byte[] { (byte) 0xc5, (byte) 0x91 }, "utf-8"));
outputs
ő
i think looked in wrong place problem. it's coming somewhere else, reading udp message maybe.
Comments
Post a Comment