日期:2014-05-17 浏览次数:20861 次
<filter> <filter-name>encodingFilter</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> <init-param> <param-name>encoding</param-name> <param-value>UTF-8</param-value> </init-param> <init-param> <param-name>forceEncoding</param-name> <param-value>true</param-value> </init-param> </filter>
<%@page contentType="text/html;charset=UTF-8" pageEncoding="utf-8"%> <a href="read.action?chapter=%E8%BF%99%E4%B8%AA%E5%8F%AF%E4%BB%A5%E6%9C%89" >这个可以有</a>
String chapter=getRequest().getParameter("chapter"); System.out.println("chapter跳转值:"+chapter); try{ System.out.println("chapter跳转值编译后:"+URLDecoder.decode(chapter,"utf-8")); }catch (Exception e) { // TODO: handle exception } return "read";