eclipse的properties文件是默认ISO-8859-1编码的,在properties里输入中文会导致乱码
Window→Preferences→General→Content Types→Text
然后单击Java Properties Files
选定下方的*.properties(locked)
接着将最下方的ISO-8859-1改为utf-8,然后点击旁边的 Update
最后点击OK。
eclipse的properties文件是默认ISO-8859-1编码的,在properties里输入中文会导致乱码
Window→Preferences→General→Content Types→Text
然后单击Java Properties Files
选定下方的*.properties(locked)
接着将最下方的ISO-8859-1改为utf-8,然后点击旁边的 Update
最后点击OK。