public class test
{
public static void main(String[] args)
{
String s1 = "电脑世界";
String s2 = new String(s1.getBytes("ISO-8859-1"),"GBK");
System.out.println(s2);
}
}
...全文
962打赏收藏
为啥编译有错
public class test { public static void main(String[] args) { String s1 = "电脑世界"; String s2 = new String(s1.getBytes("ISO-8859-1"),"GBK"); System.out.println(s2); } }