Skip to content

Commit

Permalink
Merge pull request #75 from nsysu-code-club/feature/login_error
Browse files Browse the repository at this point in the history
fix: update encoding to utf-8
  • Loading branch information
abc873693 authored Sep 4, 2023
2 parents 1221715 + 3a19635 commit 180f299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api/selcrs_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 180f299

Please sign in to comment.