aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/util/HypixelApi.java
diff options
context:
space:
mode:
authorMoulberry <james.jenour@student.scotch.wa.edu.au>2020-07-14 10:23:12 +0800
committerMoulberry <james.jenour@student.scotch.wa.edu.au>2020-07-14 10:23:12 +0800
commitf90f0b2f1f234d08742a4f0dd8afcd4b80e26d05 (patch)
treea3b7def680964e2015afb3e3188b955e64679f9a /src/main/java/io/github/moulberry/notenoughupdates/util/HypixelApi.java
parent2254c0fac78dbca807a93648c60c93281b8fb686 (diff)
downloadnotenoughupdates-f90f0b2f1f234d08742a4f0dd8afcd4b80e26d05.tar.gz
notenoughupdates-f90f0b2f1f234d08742a4f0dd8afcd4b80e26d05.tar.bz2
notenoughupdates-f90f0b2f1f234d08742a4f0dd8afcd4b80e26d05.zip
something something capes
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/util/HypixelApi.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/HypixelApi.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/HypixelApi.java b/src/main/java/io/github/moulberry/notenoughupdates/util/HypixelApi.java
index 84d970d5..c271d63a 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/util/HypixelApi.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/util/HypixelApi.java
@@ -9,6 +9,7 @@ import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;
+import java.nio.charset.StandardCharsets;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ExecutorService;
@@ -45,7 +46,7 @@ public class HypixelApi {
return null;
}
- try(BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()))) {
+ try(BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) {
StringBuilder builder = new StringBuilder();
int codePoint;
while((codePoint = reader.read()) != -1) {