---恢復內容開始---
在eclpse中設置:1.Windows->PReferences->General->Content Types->Text->Default encoding:utf-8
2.Windows->Preferences->General->Workspace->Text file encoding->Other:UTF-8

Tomcat設置:打開Tomcat文件夾下面的conf中的server.xml文件找到
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443"/>在其中后面添加URIEncoding="UTF-8"如圖:

mysql設置:打開mysql文件夾下的my.ini找到default-character-set和character-set-server將等號后面的值改為utf8
---恢復內容結束---
新聞熱點
疑難解答