From 3a19635cfe5d947fb5bbcc220b871c52d205bf86 Mon Sep 17 00:00:00 2001 From: YukiMingX <35000486+Yukimura0119@users.noreply.github.com> Date: Mon, 4 Sep 2023 22:28:42 +0800 Subject: [PATCH] fix: update encoding to utf-8 --- lib/api/selcrs_helper.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/selcrs_helper.dart b/lib/api/selcrs_helper.dart index 50c87c8..3305565 100644 --- a/lib/api/selcrs_helper.dart +++ b/lib/api/selcrs_helper.dart @@ -130,7 +130,7 @@ class SelcrsHelper { 'INTYPE': '1', }, ); - final String text = big5.decode(scoreResponse.data!); + final String text = const Utf8Decoder().convert(scoreResponse.data!); // debugPrint(text); if (text.contains('資料錯誤請重新輸入')) { return callback?.onError(