请问怎么把“\xbe\xb2\xb6\xa6\xb0\xb2\xb0\xee”这个字符串转化为中文?
如题,多谢
------解决方案--------------------private String UnicodeToChinese(String string) {
String str = string.replace( "\\u ", ", ");
String [] s2 = str.split( ", ");
String s1 = " ";
for (int i=1;i <s2.length;i++){
s1=s1+(char)Integer.parseInt(s2[i],16);
}
return s1;
}