request.setCharacterEncoding("GBK");
response.setCharacterEncoding("GBK");
加个过滤器 在过滤器里让ServletRequest ServletResponse 对象都调用setCharacterEncoding("GBK");
response.setCharacterEncoding("GBK");
加个过滤器 在过滤器里让ServletRequest ServletResponse 对象都调用setCharacterEncoding("GBK");
解决方案 »
- jsp数据库问题
- 新手求助,关键词jsp、java、tomcat
- 提交到iframe问题
- Unterminated <%@ page tag是什么错误?
- TOMCAT问题,昨天搞了一天没有弄出来,请高手帮忙!
- 谁有关于物流仓储管理(WMS)方面的web程序,不够再加
- 各位大虾帮帮忙啊!!
- 连接占线导致另一个 hstmt ???????????????????
- 什么是EIT啊,在哪可以下载到
- httpclient如何伪造来路?
- jsp中The server encountered an internal error () that prevented it from fulfilling this request.是什么错误
- java web
String transferStr = request.getParameter("11");
try {
transferStr = new String(str.getBytes("ISO8859_1"),"GBK");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
System.out.println(transferStr);