File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
binding/java/src/main/java/org/lionsoul/ip2region Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -147,8 +147,9 @@ public static void benchTest(String[] args) throws IOException {
147
147
Searcher searcher = createSearcher (dbPath , cachePolicy );
148
148
long count = 0 , costs = 0 , tStart = System .nanoTime ();
149
149
String line ;
150
+ final Charset charset = Charset .forName ("utf-8" );
150
151
final FileInputStream fis = new FileInputStream (srcPath );
151
- final BufferedReader reader = new BufferedReader (new InputStreamReader (fis , StandardCharsets . UTF_8 ));
152
+ final BufferedReader reader = new BufferedReader (new InputStreamReader (fis , charset ));
152
153
while ((line = reader .readLine ()) != null ) {
153
154
String l = line .trim ();
154
155
String [] ps = l .split ("\\ |" , 3 );
You can’t perform that action at this time.
0 commit comments