1.页面
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
2.程序
resp.setCharacterEncoding("utf-8");
3.tomcat -server.xml 增加 useBodyEncodingForURI="true",如图
<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"
useBodyEncodingForURI="true"/>