Skip to content

Commit

Permalink
Use Java 8 method rather than Java 11
Browse files Browse the repository at this point in the history
  • Loading branch information
mmyers committed Sep 18, 2023
1 parent 1128f95 commit 9c0064d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eugFile/src/eug/parser/EUGFileIO.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public static GenericObject load(File file, ParserSettings settings) {

public static GenericObject loadUTF8(File file, ParserSettings settings) {
try {
return loadFromString(Files.readString(file.toPath()), settings);
return loadFromString(new String(Files.readAllBytes(file.toPath()), StandardCharsets.UTF_8), settings);
} catch (IOException ex) {
return null;
}
Expand Down

0 comments on commit 9c0064d

Please sign in to comment.