public static String ChineseToUnicode(String s) {
StringBuffer bu = new StringBuffer(s);
String unicode = "";
for(int i = 0; i < bu.length(); i++) {
String tmp = Integer.toHexString((int)bu.charAt(i));
unicode = unicode + "\\u" + tmp;
}
return unicode;
}
2007年12月13日 星期四
訂閱:
張貼留言 (Atom)

沒有留言:
張貼留言