Load config.yaml using its own charset

Strings in the config are therefore respected by the configured charset
This commit is contained in:
P0nk
2021-09-08 20:01:43 +02:00
parent c841e9952b
commit 52551b2451
3 changed files with 37 additions and 11 deletions

View File

@@ -56,7 +56,7 @@ public class CharsetConstants {
}
private static Charset loadCharset() {
String configCharset = YamlConfig.config.server.CHARSET;
String configCharset = YamlConfig.loadCharset();
if (configCharset != null) {
Language language = Language.fromCharset(configCharset);
return Charset.forName(language.getCharset());