Merge branch 'client-fix-utf' into 'master'
[Client] Convert all input to UTF16 See merge request famedly/famedlysdk!145
This commit is contained in:
commit
1ccd945473
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue