mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-10 04:03:22 +08:00
Fix the Chinese messy code problem.
This commit is contained in:
parent
0690e23116
commit
a9a027bbc6
@ -254,7 +254,7 @@ public final class Utils {
|
||||
*/
|
||||
public static String readFromInputStream(InputStream stream) {
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
try (BufferedReader reader = new BufferedReader(new InputStreamReader(stream))) {
|
||||
try (BufferedReader reader = new BufferedReader(new InputStreamReader(stream,"UTF-8"))) {
|
||||
String line; while ((line = reader.readLine()) != null) {
|
||||
stringBuilder.append(line);
|
||||
} stream.close();
|
||||
|
Loading…
Reference in New Issue
Block a user