utf-8 fix
This commit is contained in:
parent
33d1283788
commit
fe43da5e57
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ class MainPageState extends State<MainPage> {
|
|||
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!");
|
||||
|
|
Loading…
Reference in a new issue