[Client] Convert all input to UTF16
This commit is contained in:
parent
c78330ea58
commit
aef05a4ee6
|
@ -630,7 +630,7 @@ class Client {
|
||||||
.timeout(Duration(seconds: timeout));
|
.timeout(Duration(seconds: timeout));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
jsonResp = jsonDecode(resp.body)
|
jsonResp = jsonDecode(String.fromCharCodes(resp.body.runes))
|
||||||
as Map<String, dynamic>; // May throw FormatException
|
as Map<String, dynamic>; // May throw FormatException
|
||||||
|
|
||||||
if (jsonResp.containsKey("errcode") && jsonResp["errcode"] is String) {
|
if (jsonResp.containsKey("errcode") && jsonResp["errcode"] is String) {
|
||||||
|
|
Loading…
Reference in a new issue