中文和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
相關文章
相關標籤/搜索