Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

GSam
Copy link
Contributor

@GSam GSam commented Dec 17, 2018

UnicodeCharsXXTextRecord is encoded as UTF-16 and the length refers to the length in encoded bytes not Unicode. This meant that records of length > 128 Unicode characters could fail to convert to binary elsewhere because the length couldn't fit in the record (but it varied on the length).

(Changing this code to use the alternate CharsXXTextRecord with UTF-8 might also be useful for saving space)

UnicodeCharsXXTextRecord is encoded as UTF-16 and the length refers to the length in encoded bytes not Unicode. This meant that records of length > 128 Unicode characters could fail to convert to binary elsewhere because the length couldn't fit in the record (but it varied on the length).

(Changing this code to use the alternate CharsXXTextRecord with UTF-8 might also be useful for saving space)
@takeshixx takeshixx merged commit cebbc8a into ernw:develop Dec 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants