fix 加载行政区域文件乱码问题

pull/1712/head
xpf 2024-12-09 14:30:36 +08:00
parent 5bbd461d88
commit dd38127deb
1 changed files with 2 additions and 2 deletions

View File

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