diff --git a/src/test/java/org/codejive/properties/TestProperties.java b/src/test/java/org/codejive/properties/TestProperties.java index 6bb42a3..a792f28 100644 --- a/src/test/java/org/codejive/properties/TestProperties.java +++ b/src/test/java/org/codejive/properties/TestProperties.java @@ -4,6 +4,7 @@ import java.io.*; import java.net.URISyntaxException; +import java.nio.charset.StandardCharsets; import java.net.URL; import java.nio.file.Files; import java.nio.file.Path; @@ -1126,6 +1127,6 @@ private Path getResource(String name) throws URISyntaxException { } private String readAll(Path f) throws IOException { - return new String(Files.readAllBytes(f)); + return new String(Files.readAllBytes(f), StandardCharsets.UTF_8); } }