标签:: Unicode

0

中文和Unicode互相转化

Unicode转中文 123String unicode = "\u6211\u7231\u7956\u56fd";String result = new String(unicode.getBytes("UTF-8"), "UTF-8");System.out.println(result); 结果:我爱祖国 中文转Unicode 1234567String chinese = "我爱祖国";S