解决调度中心的执行日志Console读取远程日志时,由于未指定编码导致中文乱码的问题

pull/22/MERGE
huangxiaohui 4 years ago
parent b2ff5bedc8
commit 3b35342ef9

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