Fix the Chinese messy code problem.

This commit is contained in:
FpguDhk 2022-05-07 11:38:14 +08:00 committed by Melledy
parent 0690e23116
commit a9a027bbc6

View File

@ -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();