Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • To confirm, this supports UTF-8 characters?
    – Crashalot
    Commented Feb 3, 2018 at 9:09
  • 1
    @Crashalot I realize this is two years too late, but yes it does. I am also just realizing as I type this that you provided an edit that possibly made UTF8 work.
    – user9665770
    Commented Apr 5, 2020 at 17:34
  • For anyone here looking for a good solution to use with Node.js, I can confirm this works. For decoding in Node, I used: Buffer.from(b64data, 'base64').toString();
    – user9665770
    Commented Apr 5, 2020 at 17:35
  • 2
    Can someone explain what unescape and escape are doing in this solution snipped? Commented Sep 16, 2020 at 16:09
  • 2
    For frontend: I noticed that both btoa & unescape & escape are flagged as depreciated. This has more info: stackoverflow.com/q/68849233/4096078 & stackoverflow.com/a/27926636/4096078
    – RockyK
    Commented Jul 9, 2022 at 20:23