From 793abc279b8df92e13b3ad366dc13e9dcd84dbd3 Mon Sep 17 00:00:00 2001 From: Starryi Date: Fri, 8 Oct 2021 11:39:01 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-60402=20=E3=80=90=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E3=80=91=E8=8E=B7=E5=8F=96=E7=9A=84=E9=85=B7?= =?UTF-8?q?=E7=82=AB=E8=93=9D=E7=BB=84=E4=BB=B6=E4=B8=BB=E9=A2=98=EF=BC=8C?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E4=B9=B1=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 【问题原因】 客户机环境问题,导致读取主题XML文件时使用的默认编码有误 【改动思路】 --- .../java/com/fr/design/mainframe/share/util/DownloadUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/designer-form/src/main/java/com/fr/design/mainframe/share/util/DownloadUtils.java b/designer-form/src/main/java/com/fr/design/mainframe/share/util/DownloadUtils.java index 0b2a6954ae..c5b90c7856 100644 --- a/designer-form/src/main/java/com/fr/design/mainframe/share/util/DownloadUtils.java +++ b/designer-form/src/main/java/com/fr/design/mainframe/share/util/DownloadUtils.java @@ -147,7 +147,7 @@ public class DownloadUtils { if (fileRes.getStatusLine().getStatusCode() == HttpStatus.SC_OK) { HttpEntity entity = fileRes.getEntity(); - BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(entity.getContent())); + BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(entity.getContent(), StandardCharsets.UTF_8)); StringBuilder stringBuilder = new StringBuilder(); String line; while ((line = bufferedReader.readLine()) != null) {