Created
October 28, 2014 14:42
-
-
Save h2non/19c8a0d77b6c24dba47e to your computer and use it in GitHub Desktop.
Base64 UTF8 native decoding in browsers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function base64UTF8Decode(str) { | |
return unescape(decodeURIComponent(window.atob(str))) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment