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();