Skip to content

Commit

Permalink
fix: decode ut8 when importing from web
Browse files Browse the repository at this point in the history
Closes #66
  • Loading branch information
VytorCalixto committed Nov 25, 2024
1 parent 1fe4c41 commit 1398d94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Future<List<Map<String, dynamic>>> _decodeFile(
if (file != null) {
fileContent = await file.readAsString();
} else {
fileContent = String.fromCharCodes(bestiaryFile.bytes!);
fileContent = utf8.decode(bestiaryFile.bytes!);
}

final data = bestiaryFile.extension == 'csv'
Expand Down

0 comments on commit 1398d94

Please sign in to comment.