天天看點

怎樣将GB2312編碼的字元串轉換為ISO-8859-1編碼的字元串?

String s1 = "你好";
String s2 = new String(s1.getBytes("GB2312"), "ISO-8859-1");
           

繼續閱讀