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

Save as URL doesn't work with unicode/emojis #29

Closed
refset opened this issue Apr 19, 2024 · 2 comments
Closed

Save as URL doesn't work with unicode/emojis #29

refset opened this issue Apr 19, 2024 · 2 comments

Comments

@refset
Copy link
Contributor

refset commented Apr 19, 2024

image

Uncaught DOMException: Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.
    at https://fiddle.xtdb.com/public/js/compiled/app.js:3096:513
    at https://fiddle.xtdb.com/public/js/compiled/app.js:2960:120
    at iu (https://fiddle.xtdb.com/public/js/compiled/app.js:2926:249)
    at mu (https://fiddle.xtdb.com/public/js/compiled/app.js:2928:316)
    at yu (https://fiddle.xtdb.com/public/js/compiled/app.js:2944:38)
    at wu (https://fiddle.xtdb.com/public/js/compiled/app.js:2940:440)
    at https://fiddle.xtdb.com/public/js/compiled/app.js:2942:239
    at xu (https://fiddle.xtdb.com/public/js/compiled/app.js:2943:293)
    at b (https://fiddle.xtdb.com/public/js/compiled/app.js:2940:486)
    at b.port1.onmessage (https://fiddle.xtdb.com/public/js/compiled/app.js:2855:235)
(anonymous) @ app.js:2941
xu @ app.js:2943
yu @ app.js:2944
wu @ app.js:2940
(anonymous) @ app.js:2942
xu @ app.js:2943
b @ app.js:2940
b.port1.onmessage @ app.js:2855
@Akeboshiwind
Copy link
Collaborator

Here's a reasonable looking solution: https://developer.mozilla.org/en-US/docs/Glossary/Base64#the_unicode_problem

@refset refset closed this as not planned Won't fix, can't repro, duplicate, stale Jan 30, 2025
@mpisanko
Copy link
Contributor

that should now work anyways

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

3 participants