Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds support for utf-16. At the moment only handles the same endianess as the processor. We may want to have utf16le and utf16be as options. When we decode a utf16 string (standard, not decodestream) we check for a BOM, byte order marker. But if we are using decodestream we may be starting decode partway through the file, so we will probably have to save this data. For now this gets utf16 working for those who need it.
- Loading branch information
Showing
2 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
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