From 72fdce471b73717531cf3911205eec350c2ce747 Mon Sep 17 00:00:00 2001 From: Marc Beyer Date: Sat, 29 Jan 2022 11:44:25 +0100 Subject: [PATCH] Fixed encoding at http-request --- client/data/src/main/java/res/HttpRequest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/data/src/main/java/res/HttpRequest.java b/client/data/src/main/java/res/HttpRequest.java index c1cb4ad..7dba427 100644 --- a/client/data/src/main/java/res/HttpRequest.java +++ b/client/data/src/main/java/res/HttpRequest.java @@ -61,9 +61,9 @@ public class HttpRequest { BufferedReader in; if (status == 200) { - in = new BufferedReader(new InputStreamReader(connection.getInputStream())); + in = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8)); } else { - in = new BufferedReader(new InputStreamReader(connection.getErrorStream())); + in = new BufferedReader(new InputStreamReader(connection.getErrorStream(), StandardCharsets.UTF_8)); } while ((inputLine = in.readLine()) != null) {