Skip to content
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

Content length check fails in browser (but not in Node) when content contains emojis #17

Open
jhsware opened this issue Jan 7, 2016 · 0 comments

Comments

@jhsware
Copy link

jhsware commented Jan 7, 2016

Issue related to this:

    // Characters such as emojis are handled differently by Javascript. They are
    // called an astral symbol and are respresented by a surrogate pair, ie two chars.
    // Some references:
    // https://mathiasbynens.be/notes/javascript-unicode
    // https://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_Multilingual_Plane
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

No branches or pull requests

1 participant