S
static
Hi,
I have a byte array of data in utf-8 format and I would like to
convert it to a string in UTF-8 format. I've tried doing
b_array_utf8 = byte array in UTF-8 format
// This converts it to Unicode so now str is a unicode str
String str = new String(b_array_utf8,"UTF-8");
How can I convert str to a UTF-8 String? If I do the
getBytes(str,"UTF-8") then it will encode it back but I really need a
String in UTF-8 format?
Thanks in advance
a
I have a byte array of data in utf-8 format and I would like to
convert it to a string in UTF-8 format. I've tried doing
b_array_utf8 = byte array in UTF-8 format
// This converts it to Unicode so now str is a unicode str
String str = new String(b_array_utf8,"UTF-8");
How can I convert str to a UTF-8 String? If I do the
getBytes(str,"UTF-8") then it will encode it back but I really need a
String in UTF-8 format?
Thanks in advance
a