jap: <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>//都改成utf-8 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">//utf-8 tomcate: 方法1: <Connector URIEncoding="UTF-8" connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/> 修改tomcate配置。該方法直接將編碼修改成Utf-8. 方法2: <Connector useBodyEncodingForURI="true" connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/> 修改tomcate配置。該方法是頁面傳過來什麼編碼。tomcate就接受什麼編碼。若是須要轉utf-8.就作後臺處理。 controller: String value = URLDecoder.decode(value, "UTF-8");