国际化的问题 把从数据库得到的字符串进行一下处理,比如:得到的为str,String newStr = new String(str.getBytes("charsetName"), "charsetName"); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 public static String toChinese(String strIn) { if(strIn == null) return null; if(strIn.length()==0) return ""; try { byte[] bytes = strIn.getBytes("ISO8859-1"); return new String(bytes,"UTF8"); } catch(Exception ex) { } return null; } 汉诺塔问题的进一步设计 java程序问题?? 请教linux下的java环境配置方法 如何在web工程中定时启动线程 test 初学java,一个关于import的问题 Java应该怎么学,我是初学者,感觉没法下手 求救“如何使用JAVA写条形码扫描仪的数据读取程序” 请教,awt/swing高手请进! 如何获得磁盘空间? 请问如何得到磁盘剩余空间 struct中国际化配置文件中,中方乱码怎么处理
if(strIn == null) return null;
if(strIn.length()==0) return "";
try {
byte[] bytes = strIn.getBytes("ISO8859-1");
return new String(bytes,"UTF8");
}
catch(Exception ex) { }
return null;
}