[Client] Convert all input to UTF16

This commit is contained in:
Christian Pauly 2020-01-03 13:27:49 +00:00
parent c78330ea58
commit aef05a4ee6

View file

@ -630,7 +630,7 @@ class Client {
.timeout(Duration(seconds: timeout));
break;
}
jsonResp = jsonDecode(resp.body)
jsonResp = jsonDecode(String.fromCharCodes(resp.body.runes))
as Map<String, dynamic>; // May throw FormatException
if (jsonResp.containsKey("errcode") && jsonResp["errcode"] is String) {