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