Skip to content

Commit

Permalink
Missing decoding routine for ANSI
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianCassayre committed Jan 29, 2021
1 parent ba6bca8 commit 86b018c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/parse/decoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ export function detectCharset(buffer) {
return FileEncoding.ANSEL;
} else if(sourceEncoding === CharacterEncoding.ASCII) {
return FileEncoding.CP1252;
} else if(sourceEncoding === CharacterEncoding.ANSI) {
return FileEncoding.CP1252;
} else { // Unknown encoding
return FileEncoding.UTF_8; // Defaults to UTF-8
}
Expand Down

0 comments on commit 86b018c

Please sign in to comment.