Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
a9a027bb
Commit
a9a027bb
authored
May 07, 2022
by
FpguDhk
Committed by
Melledy
May 06, 2022
Browse files
Fix the Chinese messy code problem.
parent
0690e231
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/utils/Utils.java
View file @
a9a027bb
...
@@ -254,7 +254,7 @@ public final class Utils {
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment