一、控制台乱码解决方案从初级到高级,到哪一级解决了,就不需要走下一步了。 1. File > Settings > Editor > File encodings2. File > Settings > Build,Execution,Deployment > Compiler > Java Compiler3. Run/Debug Configurations4. Help > Edit Custom VM Options5. 直接修改IDEA配置文件打开 IntelliJ IDEA 在本地的安装目录,找到下面两个文件,使用记事本打开,在最后一行添加-Dfile.encoding=UTF-8
二、Terminal终端乱码如下图改为UTF-8即可 三、IDEA中Tomcat控制台乱码找到tomcat安装目录的 conf > logging.properties配置文件。将以下所有encoding都改为UTF-8即可。 |
|