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

This commit is contained in:
xpf
2024-12-09 14:30:36 +08:00
parent 5bbd461d88
commit dd38127deb

View File

@@ -54,7 +54,7 @@ public class CivilCodeFileConf implements CommandLineRunner {
inputStream = Files.newInputStream(civilCodeFile.toPath()); inputStream = Files.newInputStream(civilCodeFile.toPath());
} }
BufferedReader inputStreamReader = new BufferedReader(new InputStreamReader(inputStream)); BufferedReader inputStreamReader = new BufferedReader(new InputStreamReader(inputStream,"UTF-8"));
int index = -1; int index = -1;
String line; String line;
while ((line = inputStreamReader.readLine()) != null) { while ((line = inputStreamReader.readLine()) != null) {