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

解决调度中心的执行日志Console读取远程日志时,由于未指定编码导致中文乱码的问题
pull/22/MERGE
许雪里 4 years ago committed by GitHub
commit 0e740511f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save