摘要:
1 //中文转UNICODE 2 public static String chinaToUnicode(String str) { 3 String result = ""; 4 for (int i = 0; i < str.length(); i++) { 5 int chr1 = (char) str.charAt(i); 6 if (chr1 >= 19968 && chr1 <= 171941) {// 汉字范围 \u4e00-\u9fa5 (中文) 7 ... 阅读全文