请求数据的中文问题
request.setCharacterEncoding("utf-8");解决post中的
//utf-8是项目编码,要跟项目编码格式统一,
response.setCharacterEncoding("utf-8");
response.setContentType("text/html;charset="项目编码");
其它相关知识:
去还有一个页面:
重定向:
response.sendRedirect("相对路径或绝对路径");
1 post请求提交中文 get请求建议不提交中文(只是也有方法解决)
request.setCharacterEncoding("utf-8");解决post中的
//utf-8是项目编码,要跟项目编码格式统一,
//当然也能够选用其它编码。
response.setCharacterEncoding("utf-8");
response.setContentType("text/html;charset="项目编码");
其它相关知识:
去还有一个页面:
重定向:
response.sendRedirect("相对路径或绝对路径");