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

解决调度中心的执行日志Console读取远程日志时,由于未指定编码导致中文乱码的问题
This commit is contained in:
许雪里 2020-10-27 20:54:21 +08:00 committed by GitHub
commit 0e740511f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) {