在servlet中转向其他jsp页面时,出现中文显示乱码,为了解决这个问题,在servlet的doPose函数中加入下列语句:
request.setCharacterEncoding("GB2312");
response.setContentType("text/html;charset=gb2312");
转载于:https://www.cnblogs.com/bearhb/archive/2006/06/30/439494.html
转载于:https://www.cnblogs.com/bearhb/archive/2006/06/30/439494.html