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

Support UTF16 outside of BMP #3

Open
reiner-dolp opened this issue Sep 4, 2016 · 2 comments
Open

Support UTF16 outside of BMP #3

reiner-dolp opened this issue Sep 4, 2016 · 2 comments

Comments

@reiner-dolp
Copy link
Collaborator

No description provided.

@reiner-dolp
Copy link
Collaborator Author

JS uses a modified UCS-2. Only difference are surrogate pairs. Plainly using String.fromCharCode - as we currently do - seems to be sufficient.

UCS-2 with surrogates

almost exactly how UCS-2 works. (The only difference is that technically, UCS-2 doesn’t allow surrogate > characters, while JavaScript strings do.)

https://mathiasbynens.be/notes/javascript-encoding

@reiner-dolp
Copy link
Collaborator Author

  • add tests for supplementary unicode planes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant