Fix toString call which breaks due to Windows not defaulting to UFT8

This commit is contained in:
Jonas Herzig
2019-07-12 19:18:32 +02:00
parent aea222d176
commit 06fe165249

View File

@@ -108,7 +108,7 @@ public class LangResourcePack extends AbstractFileResourcePack {
String langFile; String langFile;
try (InputStream in = Files.newInputStream(langPath)) { try (InputStream in = Files.newInputStream(langPath)) {
langFile = IOUtils.toString(in); langFile = IOUtils.toString(in, StandardCharsets.UTF_8);
} }
Map<String, String> properties = new HashMap<>(); Map<String, String> properties = new HashMap<>();