1. 程式人生 > >MyEclipse解決中文亂碼問題,統一為UTF-8,及其他設定

MyEclipse解決中文亂碼問題,統一為UTF-8,及其他設定

一、workspace


二、jsp


三、content-type


4、resource


5、get傳參亂碼問題

tomcat的server.xml修改以下程式碼

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

6、post等引數亂碼

修改struts.xml

	<constant name="struts.i18n.encoding" value="UTF-8" />
	<constant name="struts.locale" value="UTF-8" />

7、自動更新伺服器

修改struts.xml

<constant name="struts.devMode" value="true" />

8、struts2-core-2.3.28.1.jar原始碼和幫助文件設定