From 5437558e8fdb8a061346638b5b029190a12bfd3f Mon Sep 17 00:00:00 2001 From: makejava <1353036300@qq.com> Date: Mon, 30 Aug 2021 15:19:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A7=E7=89=88=E6=9C=ACID?= =?UTF-8?q?EA=E5=93=8D=E5=BA=94=E4=B9=B1=E7=A0=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/sjhy/plugin/tool/HttpUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sjhy/plugin/tool/HttpUtils.java b/src/main/java/com/sjhy/plugin/tool/HttpUtils.java index 57186b3..f508636 100644 --- a/src/main/java/com/sjhy/plugin/tool/HttpUtils.java +++ b/src/main/java/com/sjhy/plugin/tool/HttpUtils.java @@ -108,7 +108,7 @@ public final class HttpUtils { private static String handlerRequest(HttpUriRequest request) { try { CloseableHttpResponse response = HTTP_CLIENT.execute(request); - String body = EntityUtils.toString(response.getEntity()); + String body = EntityUtils.toString(response.getEntity(), "UTF-8"); if (response.getStatusLine().getStatusCode() != HttpStatus.SC_OK) { Messages.showWarningDialog("连接到服务器错误!", GlobalDict.TITLE_INFO); return null;