Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-20 06:50:09 +01:00
Force loading help-text using utf-8 to fix encoding errors (#4165)
Dieser Commit ist enthalten in:
Ursprung
5d30019bc7
Commit
1d75d084a7
@ -28,6 +28,7 @@ package org.geysermc.geyser;
|
||||
import javax.swing.*;
|
||||
import java.io.InputStream;
|
||||
import java.lang.reflect.Method;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.Locale;
|
||||
import java.util.Scanner;
|
||||
|
||||
@ -60,7 +61,7 @@ public class GeyserMain {
|
||||
helpStream = GeyserMain.class.getClassLoader().getResourceAsStream("languages/run-help/en_US.txt");
|
||||
}
|
||||
|
||||
Scanner help = new Scanner(helpStream).useDelimiter("\\Z");
|
||||
Scanner help = new Scanner(helpStream, StandardCharsets.UTF_8).useDelimiter("\\Z");
|
||||
String line = "";
|
||||
while (help.hasNext()) {
|
||||
line = help.next();
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren