设置项目文件编码utf-8
IntelliJ IDEA --> Preferences --> Editor --> File Encodings
project file encoding
确保源文件编码为utf-8
source code file encoding修改IDEA运行时vm参数
Run --> Edit Configurations
-Dfile.encoding=UTF-8
Runtime vm configurations
IntelliJ IDEA --> Preferences --> Editor --> File Encodings
Run --> Edit Configurations
-Dfile.encoding=UTF-8
本文标题:Mac IntelliJ IDEA 控制台中文乱码
本文链接:https://www.haomeiwen.com/subject/zaeyxqtx.html
网友评论