Skip to content

Fixes utf8 Umlaute #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 26, 2018
Merged

Conversation

oheck
Copy link
Contributor

@oheck oheck commented Jun 26, 2018

When trying to serialize strings with umlaute (ö, ä, ...), that umlaut will be counted as 1 byte instead of 2 bytes.

This pull requests uses Buffer.byteLength with uf8 to count the length for strings and therefore will use the correct byte count.

@mattsoftware mattsoftware merged commit 4ec25a9 into mattsoftware:master Jun 26, 2018
@mattsoftware
Copy link
Owner

Thank you for your input. Merged and pushed to npm.

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.

None yet

2 participants