From 6a0ab3437fc102f9f715bd8b03e33b3059dd5810 Mon Sep 17 00:00:00 2001 From: wuzhiping Date: Sun, 8 Dec 2019 13:09:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug:=20=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E5=99=A8=E7=BA=BF=E7=A8=8B=E9=98=BB=E5=A1=9E=E6=97=B6=E7=BB=99?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=99=A8=E8=BF=94=E5=9B=9E=E7=9A=84json?= =?UTF-8?q?=E4=B8=AD=E6=9C=89=E7=89=B9=E6=AE=8A=E7=AC=A6=E5=8F=B7=EF=BC=8C?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E7=AE=A1=E7=90=86=E5=99=A8=E7=AB=AF=E4=B8=80?= =?UTF-8?q?=E7=9B=B4=E6=8A=A5=E9=94=99,=20=E4=BD=BF=E7=94=A8getBytes=20utf?= =?UTF-8?q?-8=E5=8D=B3=E5=8F=AF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/xxl/job/core/util/XxlJobRemotingUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xxl-job-core/src/main/java/com/xxl/job/core/util/XxlJobRemotingUtil.java b/xxl-job-core/src/main/java/com/xxl/job/core/util/XxlJobRemotingUtil.java index 2ee3edd1..6828a302 100644 --- a/xxl-job-core/src/main/java/com/xxl/job/core/util/XxlJobRemotingUtil.java +++ b/xxl-job-core/src/main/java/com/xxl/job/core/util/XxlJobRemotingUtil.java @@ -57,7 +57,7 @@ public class XxlJobRemotingUtil { String requestBody = BasicJson.toJson(requestObj); DataOutputStream dataOutputStream = new DataOutputStream(connection.getOutputStream()); - dataOutputStream.writeBytes(requestBody); + dataOutputStream.write(requestBody.getBytes("UTF-8")); dataOutputStream.flush(); dataOutputStream.close();