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!");