Skip to content

Conversation

@GabrielMajeri
Copy link
Collaborator

To help with issues like #9, this PR updates the decode/decode_with documentation to specify that the output buffer should be at least three times as big as the number of characters in the input, since each 2-byte UCS-2 character could end up as a 3-byte UTF-8 character.

@GabrielMajeri GabrielMajeri merged commit da85329 into master Dec 18, 2021
@nicholasbishop nicholasbishop deleted the document-decode-behavior branch April 9, 2023 16:44
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