写入数据库中时中文的问题! 你的编码和字符集怎么转来转去的,gb2312就好了,怎么又转成iso了? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 给你一个转换函数,再insert的时候调用/**** 字符集的转换函数 ****/ // added by baiqing 2003.02.18 public static String charConvert(String strSource){ if (strSource == null){ return ""; } else{ try{ //return new String(strSource.getBytes("GB2312"), "ISO-8859-1"); String str = new String(strSource.getBytes("ISO-8859-1"), "GB2312"); System.out.println(str); return str; } catch (Exception ex){ System.out.println(ex.toString()); return ""; } } } 求教关于struts2的问题: 将string拼成的xml转换成json ssh+jquery整合问题 jsp根据线路查询其经过的所有站点?非常急!!!!!! iframe 做在线编辑器,IE下行距很大,火狐下正常 struts2 文件上传空指针 hibernate+spring使用注释功能的错误,小弟在线等。 如此大的一条sql语句在30个左右的并发访问系统当中的性能问题? 如何进行同步处理_有开发经验的人请进 Applet为什么不能显示出来? !!!!!急!!一位在校的计算机专业的mm想请问各位大侠:如何用jsp对文本文件进行修改 sos!!!
/**** 字符集的转换函数 ****/
// added by baiqing 2003.02.18
public static String charConvert(String strSource){
if (strSource == null){
return "";
}
else{
try{
//return new String(strSource.getBytes("GB2312"), "ISO-8859-1");
String str = new String(strSource.getBytes("ISO-8859-1"), "GB2312");
System.out.println(str);
return str;
}
catch (Exception ex){
System.out.println(ex.toString());
return "";
}
}
}