Skip to content

Set Hash via btoa fails on emojis #188

Open
@kungfooman

Description

@kungfooman

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?

Metadata

Metadata

Assignees

Labels

REPLEverything related to REPLbugSomething isn't workingenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions