Skip to content

Commit

Permalink
Main.java: Byte array must be generated with UTF-8.
Browse files Browse the repository at this point in the history
  • Loading branch information
wrandelshofer committed Oct 18, 2024
1 parent 7a3ae60 commit ccd4d4c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public static void main(String... args) throws Exception {
}

private Map<String, BenchmarkFunction> createBenchmarkFunctions(List<String> lines) {
List<byte[]> byteArrayLines = lines.stream().map(l -> l.getBytes(StandardCharsets.ISO_8859_1)).collect(Collectors.toList());
List<byte[]> byteArrayLines = lines.stream().map(l -> l.getBytes(StandardCharsets.UTF_8)).collect(Collectors.toList());
List<char[]> charArrayLines = lines.stream().map(String::toCharArray).collect(Collectors.toList());


Expand Down

0 comments on commit ccd4d4c

Please sign in to comment.