//编写本程序的编码方式为GB2312。
public class Byte{
public static void main(String arg[])throws Exception{
String a="asa中国a";
System.out.println("a="+a);
String b=new String(a.getBytes("gb2312"),"utf-8");
String e=new String(b.getBytes("utf-8"),"iso-8859-1");
String f=new String(b.getBytes("iso-8859-1"),"gb2312");
System.out.println("b(g-u)="+b);
System.out.println("e(u-i)="+e);
System.out.println("f(i-g)="+f);
String c="中国";
System.out.println("c="+c);
String d=new String(c.getBytes("gb2312"),"utf-8");
System.out.println("d(g-u)="+d);
}
}
运行结果是什么?
?