mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-22 17:51:53 +00: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