Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set the encoding to UTF-8 when reading string with FromBytes
Change the encoding to UTF-8 when reading string, and also fall back to single-byte character encoding for unsupported string encodings. The issue discovered is that the string is being processed one byte at a time. However, in UTF-8 encoding, characters can be represented by two or more bytes, which might cause encoding issues. For example the character á is encoded incorrectly.
- Loading branch information