中文和Unicode互相转化

Unicode转中文 String unicode = "\u6211\u7231\u7956\u56fd.mp3"; String result = new String(unicode.getBytes("UTF-8"), "UTF-8"); System.out.println(result); 结果: 我爱祖国 中文转Unicode String chinese = "我爱祖国"; Str
相关文章
相关标签/搜索