1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-28 11:19:11 +00:00

Load language overrides with UTF-8 encoding (#5515)

This commit is contained in:
rtm516
2025-05-03 08:03:19 +01:00
committed by GitHub
parent b06f1ed279
commit ec6977b8bd

View File

@@ -158,7 +158,7 @@ public class GeyserLocale {
// By loading both, we ensure that if a language string doesn't exist in the custom properties folder,
// it's loaded from our jar
if (validLocalLanguage) {
try (InputStream stream = new FileInputStream(localLanguage)) {
try (InputStreamReader stream = new InputStreamReader(new FileInputStream(localLanguage), StandardCharsets.UTF_8)) {
localeProp.load(stream);
} catch (IOException e) {
String message = "Unable to load custom language override!";