fix: GBK decoding fallback (#863)

* fix #757

* fix #757

* apply the code recommendations from sourcery ai

* Make sure raw is non-empty data

* Modified the way to judge gbk, fixed the problem that null cannot throw an error
This commit is contained in:
lxdklp
2025-08-21 23:28:06 +08:00
committed by GitHub
parent fcb3d7e2b3
commit 24fd4b782d
4 changed files with 61 additions and 3 deletions

View File

@@ -515,6 +515,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.6.0"
flutter_gbk2utf8:
dependency: "direct main"
description:
name: flutter_gbk2utf8
sha256: c17323808d6ae7cfaf7676669e0130c33df6be322eb807cdd32face5824c1134
url: "https://pub.dev"
source: hosted
version: "1.0.1"
flutter_highlight:
dependency: "direct main"
description: