Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support reading UTF16 files (#26)
To allow this, we need to use a different scanner that ignores the respective BOM bytes possible to occur. This means \xFFEE and \xFEFF since UTF16 can both be little endian or big endian. By default, Windows uses UTF16 little endian. Fixes #25
- Loading branch information
1 parent
266f68a
commit 0a22e48
Showing
7 changed files
with
83 additions
and
29 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters