在拉了别人的代码到本地后发现system.properties中中文注释都变成了乱码,故记录下解决步骤,供参考,我的系统是mac系统

1、在IDEA中打开设置,IDEA--->Preferences

2、点击Editor-->File Encodings

3、图中三处选择UTF-8,再勾选图中的内容

4、保存后再看system.properties就没有乱码了

在拉了别人的代码到本地后发现system.properties中中文注释都变成了乱码,故记录下解决步骤,供参考,我的系统是mac系统
1、在IDEA中打开设置,IDEA--->Preferences
2、点击Editor-->File Encodings
3、图中三处选择UTF-8,再勾选图中的内容
4、保存后再看system.properties就没有乱码了