一个Unicode字符编码问题
String text = "\u5f53\u7b2c\u4e00";
System.out.println( text );
运行输出结果为:"第一个“;
把上面的text字符窜,保存到文本文件中,然后读取出来
Pattern p = Pattern.compile("(\\\\u\\w{4})+");
Matcher m = p.matcher(text);
while( m.find() ) {
String str = m.group();
System.out.println( str) );
//此处输出结果为:\u5f53\u7b2c\u4e00 而不是对应的中文字符:第一个
//请问如何才能让输出其对应的中文字符窜:第一个 呢
}