Skip to content

Commit

Permalink
Read response body as UTF-8 (fixes #5)
Browse files Browse the repository at this point in the history
  • Loading branch information
btk5h committed May 26, 2018
1 parent ed00137 commit 47a2749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/btk5h/reqn/skript/EffRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ private HttpResponse sendRequest(Event e) {

StringBuilder responseBody = new StringBuilder();

try (BufferedReader br = new BufferedReader(new InputStreamReader(response))) {
try (BufferedReader br = new BufferedReader(new InputStreamReader(response, StandardCharsets.UTF_8))) {
String line;
while ((line = br.readLine()) != null) {
responseBody.append(line);
Expand Down

0 comments on commit 47a2749

Please sign in to comment.