From 7765ef51ddeff512d645c2d54173c116eaaf7b8b Mon Sep 17 00:00:00 2001 From: "xueli.xue" Date: Wed, 3 May 2017 11:01:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E8=A1=8C=E6=97=A5=E5=BF=97=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E7=BC=96=E7=A0=81=E7=BB=9F=E4=B8=80=EF=BC=8C=E8=A7=A3?= =?UTF-8?q?=E5=86=B3windows=E7=8E=AF=E5=A2=83=E4=B8=8B=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E4=B9=B1=E7=A0=81=E9=97=AE=E9=A2=98=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/xxl/job/core/log/XxlJobFileAppender.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xxl-job-core/src/main/java/com/xxl/job/core/log/XxlJobFileAppender.java b/xxl-job-core/src/main/java/com/xxl/job/core/log/XxlJobFileAppender.java index ea96dbc7..4a58f2e0 100644 --- a/xxl-job-core/src/main/java/com/xxl/job/core/log/XxlJobFileAppender.java +++ b/xxl-job-core/src/main/java/com/xxl/job/core/log/XxlJobFileAppender.java @@ -121,7 +121,8 @@ public class XxlJobFileAppender { int toLineNum = 0; LineNumberReader reader = null; try { - reader = new LineNumberReader(new FileReader(logFile)); + //reader = new LineNumberReader(new FileReader(logFile)); + reader = new LineNumberReader(new InputStreamReader(new FileInputStream(logFile), "utf-8")); String line = null; while ((line = reader.readLine())!=null) {