Skip to content

Commit

Permalink
fix: replace invaild characters for utf8 decode
Browse files Browse the repository at this point in the history
Signed-off-by: Mumulhl <[email protected]>
  • Loading branch information
mumu-lhl committed Oct 1, 2024
1 parent 5aa375e commit 690255b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/dict_reader_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ class DictReader {
if (_encoding == "UTF-16" && _mdx) {
keyText = Utf16Decoder().decodeUtf16Le(keyEncoded);
} else {
keyText = utf8.decode(keyEncoded);
keyText = utf8.decode(keyEncoded, allowMalformed: true);
}

if (!_mdx) {
Expand Down

0 comments on commit 690255b

Please sign in to comment.