From aef05a4ee6aa79c6ae63695b42059dea00864fd7 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Fri, 3 Jan 2020 13:27:49 +0000 Subject: [PATCH] [Client] Convert all input to UTF16 --- lib/src/Client.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/Client.dart b/lib/src/Client.dart index e10702f8..20cad8a0 100644 --- a/lib/src/Client.dart +++ b/lib/src/Client.dart @@ -630,7 +630,7 @@ class Client { .timeout(Duration(seconds: timeout)); break; } - jsonResp = jsonDecode(resp.body) + jsonResp = jsonDecode(String.fromCharCodes(resp.body.runes)) as Map; // May throw FormatException if (jsonResp.containsKey("errcode") && jsonResp["errcode"] is String) {