mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-23 02:34:07 +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) {
|
public static String readFromInputStream(InputStream stream) {
|
||||||
StringBuilder stringBuilder = new StringBuilder();
|
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) {
|
String line; while ((line = reader.readLine()) != null) {
|
||||||
stringBuilder.append(line);
|
stringBuilder.append(line);
|
||||||
} stream.close();
|
} stream.close();
|
||||||
|
Loading…
Reference in New Issue
Block a user