Skip to content

Commit 47a2749

Browse files
committed
Read response body as UTF-8 (fixes #5)
1 parent ed00137 commit 47a2749

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/btk5h/reqn/skript/EffRequest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ private HttpResponse sendRequest(Event e) {
206206

207207
StringBuilder responseBody = new StringBuilder();
208208

209-
try (BufferedReader br = new BufferedReader(new InputStreamReader(response))) {
209+
try (BufferedReader br = new BufferedReader(new InputStreamReader(response, StandardCharsets.UTF_8))) {
210210
String line;
211211
while ((line = br.readLine()) != null) {
212212
responseBody.append(line);

0 commit comments

Comments
 (0)