Eclipse的properties文件中文乱码解决方法

时间:2022-02-25 04:11:19

转自:http://jingyan.baidu.com/article/ed2a5d1f3381d709f6be17f8.html

  1. 打开Myeclipse,找到window这一栏,点击Preference

    Eclipse的properties文件中文乱码解决方法
  2. 2

    然后会弹出一个窗体,点击General展开选项,然后点击Content Types

    Eclipse的properties文件中文乱码解决方法
  3. 3

    在右边的窗口中点击Text展开,然后点击java Properties File

    Eclipse的properties文件中文乱码解决方法
  4. 4

    将下面的编码格式设置成UTF-8就能解决java Web项目文件中的config.properties文件中文乱码的问题,注意“UTF-8”最好用大写的

    Eclipse的properties文件中文乱码解决方法
  5. 5

    设置完编码格式后,别忘了点击一下右边的“update”哦。