java unicode转换代码
static Pattern p = Pattern.compile("////u([0123456789abcdef]{4})"); public static String stringToUnicode(String s) { Matcher matcher = p.matcher(s); StringBuffer buffer = new StringBuffer(); while (matcher.find()) { int codePoint = Integer.parseInt(matcher.group(1), 16); matcher.appendReplacement(buffer, ""); buffer.appendCodePoint(codePoint); } matcher.appendTail(buffer); return buffer.toString(); } public static void main(String[] args) { System.out.println(stringToUnicode("//u5145//u503c//u6210//u529f")); }