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

    eclipse的properties文件中文乱码



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

    eclipse的properties文件中文乱码







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

  4. eclipse的properties文件中文乱码
    eclipse的properties文件中文乱码











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

    eclipse的properties文件中文乱码





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

相关文章: