springmvc post提交乱码

 

对于get乱码

String userName = new String(request.getParamter("userName").getBytes("ISO8859-1"),"utf-8")

或者

<Connector URIEncoding="utf-8" connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>

 

posted @ 2016-07-03 17:21  沙漠里的小鱼  阅读(106)  评论(0编辑  收藏  举报