java项目中的properties类型的文件,多为配置文件。填写中文注释的时候,就会自动转为ascii码。
如果你文件》Properties》Text file encoding 改为UTF-8或者GBK还是不行的话,
那只能安装properties插件了。
选择 Hepl》 Eclipse Marketplat eclipse市场,搜索properties,选择 simple properties editor -> install
重启eclipse
然后 , (如果properties 没有被默认设置的话,手动设置一下)
菜单——>Preferences——>General->Editors->File Associations -> *.properties
设置默认的编辑器为: SimplePropertiesEditor 为 default