2011-05-22 96 views

回答

0
从文件中读取Unicode字符和显示对应的字母

这应该让你开始:

String str = "\\u0BAB\\u0BCD\\u0BAA"; 
StringBuilder sb = new StringBuilder(); 

for (int i = 0; i < str.length(); i += 6) { 
    String chStr = str.substring(i+2, i+6); 
    sb.append((char) Integer.parseInt(chStr, 16)); 
} 

System.out.println("Result: " + sb.toString()); 
+0

非常感谢:) :) – sakthi 2011-05-22 16:30:26

相关问题