From df63c258b3e8b6b3137107b56155dc2b45c29293 Mon Sep 17 00:00:00 2001 From: BalazsManus Date: Fri, 14 Feb 2025 14:13:56 +0100 Subject: [PATCH] fixes news? --- .gitmodules | 2 +- .idea/misc.xml | 1 - refilc/lib/api/client.dart | 3 ++- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitmodules b/.gitmodules index 8cd5c43..55c3452 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "naplo-plus"] path = refilc_plus - url = git@github.com:refilc/naplo-plus.git + url = https://git.qwit.cloud/refilc/student-plus.git diff --git a/.idea/misc.xml b/.idea/misc.xml index de791dd..c39d778 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,3 @@ - \ No newline at end of file diff --git a/refilc/lib/api/client.dart b/refilc/lib/api/client.dart index 27f8545..6d246bd 100644 --- a/refilc/lib/api/client.dart +++ b/refilc/lib/api/client.dart @@ -127,7 +127,8 @@ class FilcAPI { http.Response res = await http.get(Uri.parse(news)); if (res.statusCode == 200) { - return (jsonDecode(res.body) as List) + String utf8Body = utf9.decode(res.bodyBytes); + return (jsonDecode(utf8Body) as List) .cast() .map((e) => News.fromJson(e)) .toList();