utf9 bruh

This commit is contained in:
BalazsManus 2025-02-14 14:14:51 +01:00
parent df63c258b3
commit 4cde28cd72

View File

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