Skip to content

fix: supplementary Unicode characters are not correctly serialized - #110

Open
neilwiborg wants to merge 1 commit into
marcbachmann:mainfrom
neilwiborg:unicode
Open

neilwiborg wants to merge 1 commit into
marcbachmann:mainfrom
neilwiborg:unicode

Conversation

@neilwiborg

@neilwiborg neilwiborg commented Nov 7, 2026 •

Copy link
Copy Markdown

Fixes: #109

Instead of iterating over every UTF-16 code unit, I have changed the loop to iterate over every Unicode code point. Test coverage has been added for supplementary Unicode characters, and that a string with Unicode characters that is round-tripped through serialize() and parse() is the same as the original string.

This PR was written with assistance from AI.

@neilwiborg

Copy link
Copy Markdown
Author

Hey @marcbachmann, could I get your 👀 on this when you have a chance? Thanks!

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.

Supplementary Unicode characters are not correctly serialized

1 participant