public void setCharacterEncoding(java.lang.String env)
throws java.io.UnsupportedEncodingException
Overrides the name of the character encoding used in the body of thisrequest. This method must be called prior to reading request parametersor reading input using getReader().Parameters:a - String containing the name of the chararacter encoding.Throws:java.io.UnsupportedEncodingException - if this is not a valid encoding
我错了,光看方法名字就开练,api文档看得不够仔细。在这次迁移工作中,学了这么一个servlet规范。