jsp写入数据库 汉字不能正常显示是怎么回事??
如题
2007-04-20 23:34
2007-04-21 08:25
2007-04-21 14:55
2007-04-21 14:57
2007-04-22 20:03
2007-04-22 22:48
2007-04-23 11:29
应该在你的servlet页面加两句话:
request.setCharacterEncoding("GBK");
response.setCharacterEncoding("GBK");
打红色的是根据你:public void doPost(HttpServletRequest request,HttpServletResponse response)throws.....{..}
里面声名的名字要一样;

2007-04-30 00:49