Browse Source

REPORT-60402 【主题获取】获取的酷炫蓝组件主题,名称乱码

【问题原因】
客户机环境问题,导致读取主题XML文件时使用的默认编码有误

【改动思路】
research/11.0
Starryi 3 years ago
parent
commit
793abc279b
  1. 2
      designer-form/src/main/java/com/fr/design/mainframe/share/util/DownloadUtils.java

2
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) {

Loading…
Cancel
Save