Merge pull request #1899 from andy-a-coder/master

解决调度中心的执行日志Console读取远程日志时,由于未指定编码导致中文乱码的问题
master
许雪里 4 years ago committed by GitHub
commit 0e740511f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      xxl-job-core/src/main/java/com/xxl/job/core/util/XxlJobRemotingUtil.java

@ -118,7 +118,7 @@ public class XxlJobRemotingUtil {
}
// result
bufferedReader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
bufferedReader = new BufferedReader(new InputStreamReader(connection.getInputStream(), "UTF-8"));
StringBuilder result = new StringBuilder();
String line;
while ((line = bufferedReader.readLine()) != null) {

Loading…
Cancel
Save