fix 加载行政区域文件乱码问题
parent
5bbd461d88
commit
dd38127deb
|
@ -54,7 +54,7 @@ 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) {
|
||||
|
|
Loading…
Reference in New Issue