中文字符级转换

Chinese { String toUnicode(String strvalue) { 3try { 4if (strvalue == null) {; 6 } 7else { 8strvalue = new String(strvalue.getBytes(“GBK”), “ISO8859_1”); 9return strvalue;10 }11 }12catch (Exception e) {13return “”;14 }15 } String toChinese(String strvalue) {18try {19if (strvalue == null) {20return “”;21 }22else {23strvalue = new String(strvalue.getBytes(“ISO8859_1”), “GBK”);24return strvalue;25 }26 }27catch (Exception e) {28return “”;29 }30 } String chinese(String a) {33try {String(a.getBytes(“ISO-8859-1”));35 }36catch (UnsupportedEncodingException ex) {;38 }39 }40 },香港空间,虚拟主机,香港空间离开之后,我想你不要忘记一件事:不要忘记想念我。

中文字符级转换

相关文章:

你感兴趣的文章:

标签云: