forked from firka/student-legacy
utf9 bruh
This commit is contained in:
parent
df63c258b3
commit
4cde28cd72
@ -127,7 +127,7 @@ class FilcAPI {
|
|||||||
http.Response res = await http.get(Uri.parse(news));
|
http.Response res = await http.get(Uri.parse(news));
|
||||||
|
|
||||||
if (res.statusCode == 200) {
|
if (res.statusCode == 200) {
|
||||||
String utf8Body = utf9.decode(res.bodyBytes);
|
String utf8Body = utf8.decode(res.bodyBytes);
|
||||||
return (jsonDecode(utf8Body) as List)
|
return (jsonDecode(utf8Body) as List)
|
||||||
.cast<Map>()
|
.cast<Map>()
|
||||||
.map((e) => News.fromJson(e))
|
.map((e) => News.fromJson(e))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user