String str = "µâº£´¼×¢ÉäÒ";
byte[] fullByte1 = new String(str.getBytes("ISO-8859-1"), "GBK")
.getBytes("UTF-8");
String fullStr = new String(fullByte1, "UTF-8");
System.out.println("string from GBK to UTF-8 byte: " + fullStr);
JAVA GBK 字符串转为utf-8
最新推荐文章于 2024-04-28 16:16:25 发布