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

Set Hash via btoa fails on emojis #188

Open
kungfooman opened this issue Jul 13, 2024 · 0 comments
Open

Set Hash via btoa fails on emojis #188

kungfooman opened this issue Jul 13, 2024 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request REPL Everything related to REPL

Comments

@kungfooman
Copy link
Owner

Simple example:

btoa('🤗');

Error:

Uncaught DOMException: Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.

So I need a better way to create a hashed state URL. Any ideas?

@kungfooman kungfooman added bug Something isn't working enhancement New feature or request REPL Everything related to REPL labels Jul 13, 2024
@kungfooman kungfooman self-assigned this Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request REPL Everything related to REPL
Projects
None yet
Development

No branches or pull requests

1 participant