引用:https://blog.csdn.net/u010999809/article/details/81204457

问题:在idea打开配置文件,已经设置了全局编码格式为UTF-8,和项目编码格式为UTF-8,但是中文依然不能正常显示

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

如config.properties,里面中文注释显示为utf8字符编码数字

 

解决方法:file->settings->editor->file encodings

如下图设置 ,一定要把下面这个选项(Transparent native-to-ascii converstion)勾上

idea properties文件中文无法正常显示 随笔 第1张

 

参考:https://www.jetbrains.com/help/idea/properties-files.html

idea properties文件中文无法正常显示 随笔 第2张

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄