I have a base64 encode want convert to utf8 string ,use php mb_convert_encoding convert is normal,code by:
$p=base64_decode("DFknU2sALQAyADAAMgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==");
echo mb_convert_encoding(substr($p, 1, 12), 'utf8', 'utf-16');
echo "\n";
How to convert to utf8 string in java.
String str = "0C5927536B002D003200300032000000000000000000000000000000000000000000000000000000";
String b = hexStringToString(str); // parse hexadecimal
String string = new String(b.getBytes("UTF-8"), "UTF-16");
System.out.println(string); // no
I want result is :
大卫-202