Skip to content

Commit 3b15bbc

Browse files
committed
fixed ’ issue... maybe
1 parent 13a2769 commit 3b15bbc

File tree

1 file changed

+2
-1
lines changed
  • common/src/main/java/org/infernalstudios/questlog/util

1 file changed

+2
-1
lines changed

common/src/main/java/org/infernalstudios/questlog/util/Util.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import com.google.gson.stream.MalformedJsonException;
88
import java.io.IOException;
99
import java.io.InputStream;
10+
import java.nio.charset.StandardCharsets;
1011
import java.util.ArrayList;
1112
import java.util.List;
1213
import java.util.function.Function;
@@ -61,7 +62,7 @@ public static <T> Tag toNbtList(List<T> list, Function<T, Tag> serializer) {
6162

6263
public static JsonObject getJsonResource(Resource resource) throws IOException {
6364
try (InputStream stream = resource.open()) {
64-
return GSON.fromJson(new String(stream.readAllBytes()), JsonObject.class);
65+
return GSON.fromJson(new String(stream.readAllBytes(), StandardCharsets.UTF_8), JsonObject.class);
6566
} catch (MalformedJsonException e) {
6667
throw new MalformedJsonException("Malformed JSON in resource " + resource, e);
6768
}

0 commit comments

Comments
 (0)