From c91f113e95db232044bdab838d9969a01c8bb808 Mon Sep 17 00:00:00 2001 From: shirne Date: Sun, 20 Feb 2022 21:31:12 +0800 Subject: [PATCH] fix --- lib/src/charset.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/charset.dart b/lib/src/charset.dart index 92d6bd4..6be3564 100644 --- a/lib/src/charset.dart +++ b/lib/src/charset.dart @@ -359,6 +359,8 @@ class Charset { encoding.encode(char); } on FormatException catch (_) { return false; + } on ArgumentError catch (_) { + return false; } return true; } @@ -369,6 +371,8 @@ class Charset { encoding.decode(char); } on FormatException catch (_) { return false; + } on ArgumentError catch (_) { + return false; } return true; }