以properties文件为例:
1. 在Eclipse工具栏选择:Window-->Preferences-->General-->Content Types
2. 在右边的Content Types页面选择:Text-->Java Properties File
3. 在下方编辑:Default encoding 改为 UTF-8,并点击"Update"-->"OK" 即可。
以properties文件为例:
1. 在Eclipse工具栏选择:Window-->Preferences-->General-->Content Types
2. 在右边的Content Types页面选择:Text-->Java Properties File
3. 在下方编辑:Default encoding 改为 UTF-8,并点击"Update"-->"OK" 即可。