1. 程式人生 > >URL中文引數往資料庫中存資料時發生亂碼

URL中文引數往資料庫中存資料時發生亂碼

解決方法:在tomcat_home\conf\server.xml 中的Connector元素中設定URIEncoding屬性為合適的字元編碼

	 <Connector port="8080" protocol="HTTP/1.1"   
	           connectionTimeout="20000"   
	            redirectPort="8443"   
	            URIEncoding="UTF-8"  
	  />