idea.vmoptions 修改
-Dfile.encoding=UTF-8
/Users/user/Library/Application Support/JetBrains/IntelliJIdea2023.1/idea.vmoptions
VM options,将此配置主动配置为-Dfile.encoding=utf-8


File -> Settings -> File Encodings下设置编码格式为UTF-8

swing 中文乱码
- 重复以上步骤
- 还有乱码的需要查看.idea目录下的 encodings.xml中,只要把encodings.xml里面的除了UTF-8的都删了之后基本上就好了。
网友评论