Myeclipse导入一个项目,有中文乱码问题

时间:2014-10-15 21:30:21   收藏:0   阅读:222

Myeclipse导入一个项目,有中文乱码问题

一.将整个project设置编码UTF-8

windows->Preferences->general->Workspace->Text file encoding->Other框中的Text file encoding改为UTF-8。
      

二.对java源文件编码设置为UTF-8

windows->Preferences->general->Context Types->Text,选择Java Source File,在下面的Default encoding输入框中输入UTF-8,点Update,则设置Java文件编码为UTF-8。

评论(0)
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!