摘要: 环境:web.xml中配置了 encodingFilter org.springframework.web.filter.CharacterEncodingFilter encoding UTF-8 forceEncoding true 通过url传递参数时,可能不会通过web.xml的过滤器将编码转换为UTF-8格式,所以在没进行后台编码转换时,直接获取到的参数值中文部分是乱码。然后在后台代码中对参数(param)进行了编码转换URLDecoder.decode(new ... 阅读全文
posted @ 2013-10-11 10:36 D: 阅读(2290) 评论(0) 推荐(0)