Merge branch 'client-fix-utf' into 'master'

[Client] Convert all input to UTF16

See merge request famedly/famedlysdk!145
This commit is contained in:
Christian Pauly 2020-01-04 09:18:42 +00:00
commit 1ccd945473

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) {