wraity

Myeclipse 导入项目乱码问题

昨晚在Myeclipse导入一个项目,有中文乱码问题,所以郁闷了很久,经过多番询问,最终得以解决。

一.将整个project设置编码UTF-8(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。

 

 

转自:http://blog.163.com/daizi_/blog/static/184876424201181310167653/?suggestedreading&wumii

分类:

技术点:

相关文章:

  • 2021-06-06
  • 2021-08-15
  • 2022-01-21
  • 2021-12-24
  • 2021-12-24
  • 2021-06-22
  • 2021-10-02
  • 2021-10-28
猜你喜欢
  • 2021-11-20
  • 2021-12-24
  • 2021-12-27
  • 2021-04-24
  • 2021-10-28
  • 2021-12-24
  • 2021-11-21
  • 2021-11-11
相关资源
相似解决方案