用response.setContentType("text/html; charset=gb2312")不能解决
从数据库读取数据的乱码问题?还必须做相应的转换;http://expert.csdn.net/Expert/topic/1998/1998503.xml?temp=.5411341
从数据库读取数据的乱码问题?还必须做相应的转换;http://expert.csdn.net/Expert/topic/1998/1998503.xml?temp=.5411341
String show_str=new String(old_str.getBytes("ISO8859_1"),"GB2312");入库:
String show_str=new String(old_str.getBytes("GB2312_1"),"ISO8859");