例如:
String s1 = “你好”;
String s2 = new String(s1.getBytes(“GB2312”), “ISO-8859-1”);
将GB2312编码的字符串转换为ISO-8859-1编码的字符串
最新推荐文章于 2025-06-06 11:44:18 发布
例如:
String s1 = “你好”;
String s2 = new String(s1.getBytes(“GB2312”), “ISO-8859-1”);