已经在 pom.xml 中加入相关 jar
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<version>1.7.21</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.1.8</version>
</dependency>
logback.xml文件中已加入charset
<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="false" scan="true" scanPeriod="5 seconds">
<appender name="WEB" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<ImmediateFlush>true</ImmediateFlush>
<pattern>%d [%t] %-5p %c - %m%n</pattern>
<charset>UTF-8</charset>
</encoder>
</appender>
<logger name="org.nutz" additivity="false" level="info">
<appender-ref ref="WEB"/>
</logger>
<logger name="org.quartz" additivity="false" level="info">
<appender-ref ref="WEB"/>
</logger>
<root level="debug">
<appender-ref ref="WEB"/>
</root>
</configuration>
但是输入的log中还是乱码。请问该如何解决