Skip to content

Commit

Permalink
Update TweetCollection.java (#1435)
Browse files Browse the repository at this point in the history
Plain Text files from Twitter API are by default UFT-8
  • Loading branch information
AndyTheFactory authored Dec 3, 2020
1 parent 3cdedcc commit f50dcce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/anserini/collection/TweetCollection.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public Segment(Path path) throws IOException {
Files.newInputStream(path, StandardOpenOption.READ), BUFFER_SIZE);
bufferedReader = new BufferedReader(new InputStreamReader(stream, StandardCharsets.UTF_8));
} else { // plain text file
bufferedReader = new BufferedReader(new FileReader(fileName));
bufferedReader = new BufferedReader(new FileReader(fileName, StandardCharsets.UTF_8));
}
}

Expand Down

0 comments on commit f50dcce

Please sign in to comment.