From dd38127debaaf45d60e085fc746dbbc0b27490db Mon Sep 17 00:00:00 2001 From: xpf <> Date: Mon, 9 Dec 2024 14:30:36 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=8A=A0=E8=BD=BD=E8=A1=8C=E6=94=BF?= =?UTF-8?q?=E5=8C=BA=E5=9F=9F=E6=96=87=E4=BB=B6=E4=B9=B1=E7=A0=81=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/genersoft/iot/vmp/conf/CivilCodeFileConf.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/conf/CivilCodeFileConf.java b/src/main/java/com/genersoft/iot/vmp/conf/CivilCodeFileConf.java index 878e01c5..aadda43f 100644 --- a/src/main/java/com/genersoft/iot/vmp/conf/CivilCodeFileConf.java +++ b/src/main/java/com/genersoft/iot/vmp/conf/CivilCodeFileConf.java @@ -53,8 +53,8 @@ public class CivilCodeFileConf implements CommandLineRunner { } inputStream = Files.newInputStream(civilCodeFile.toPath()); } - - BufferedReader inputStreamReader = new BufferedReader(new InputStreamReader(inputStream)); + + BufferedReader inputStreamReader = new BufferedReader(new InputStreamReader(inputStream,"UTF-8")); int index = -1; String line; while ((line = inputStreamReader.readLine()) != null) {