码迷,mamicode.com
首页 > 数据库 > 详细

使用eclipse+Tomcat+mysql做web开发时乱码问题解决

时间:2015-05-22 01:53:22      阅读:177      评论:0      收藏:0      [点我收藏+]

标签:

---恢复内容开始---

在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

 

---恢复内容结束---

使用eclipse+Tomcat+mysql做web开发时乱码问题解决

标签:

原文地址:http://www.cnblogs.com/vstarcui/p/4521238.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!