From 0e305b929f18a718f4f681fde3e284f359f8afbf Mon Sep 17 00:00:00 2001 From: changpengfei Date: Tue, 12 Oct 2021 12:30:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E4=B8=93=E5=AE=B6=E7=BB=84\?= =?UTF-8?q?=E5=AE=A2=E6=9C=8D=E4=BA=BA=E5=91=98=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/lyms/talkonlineweb/controller/ChatGroupController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ChatGroupController.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ChatGroupController.java index ee25635..b932183 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ChatGroupController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ChatGroupController.java @@ -194,6 +194,7 @@ public class ChatGroupController { log.info(">>>>>>>>> getSessionListInfo"); JSONArray rs=new JSONArray(); try { + request.setCharacterEncoding("utf-8"); String res=IOUtils.toString(request.getInputStream()); log.info(res); JSONObject jsonObject= JSON.parseObject(res); -- 1.8.3.1