编码的字符串转换
? 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);
发布时间: 2012-10-08 19:54:56 作者: rapoo
编码的字符串转换
? 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);