From fe43da5e579efa4d4ba20ec9e94cdaab1c212931 Mon Sep 17 00:00:00 2001 From: jusax23 Date: Wed, 7 Jun 2023 20:52:05 +0200 Subject: [PATCH] utf-8 fix --- lib/main.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/main.dart b/lib/main.dart index f49104c..ef4893e 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -180,7 +180,7 @@ class MainPageState extends State { data = file.readAsStringSync(); } else { PlatformFile pfile = result.files.first; - data = String.fromCharCodes(pfile.bytes?.map((e) => e) ?? []); + data = utf8.decode(pfile.bytes?.map((e) => e).toList() ?? []); } try { if (data.isEmpty) throw ErrorDescription("Empty File!");