Skip to content
New issue

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

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

Already on GitHub? # to your account

compressToUTF16 is not compatible when using cookies #10

Open
felipeptcho opened this issue May 25, 2020 · 0 comments
Open

compressToUTF16 is not compatible when using cookies #10

felipeptcho opened this issue May 25, 2020 · 0 comments

Comments

@felipeptcho
Copy link

compressToUTF16 is great when using Local Storage, but when using cookies, the characters are not accepted by the browsers. compressToEncodedURIComponent would be the right solution in this case.
It would be nice to have some config to choose between compressToEncodedURIComponent and compressToUTF16 or any other available function. This would make this lib compatible with more types of storage.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant