编码的字符串变换

编码的字符串转换? String str12344??String gstrnew?? String(str.getBytes( 原有编码 ), 目标编

编码的字符串转换

? String str="12344";
??String gstr=new?? String(str.getBytes( "原有编码 "), "目标编码 ");

例如:

? String str="12344";
??String gstr=new?? String(str.getBytes( "GB2312"), "ISO-8859-1");
??System.out.println(gstr);