发布于 2014-04-06 05:51:53
// myString contains your unicode escape characters
String str = myString.split(" ")[0];
str = str.replace("\\","");
String[] arr = str.split("u");
String text = "";
for(int i = 1; i < arr.length; i++){
int hexVal = Integer.parseInt(arr[i], 16);
text += (char)hexVal;
}
// Text will now have 今天https://stackoverflow.com/questions/22890298
复制相似问题