Last active
August 29, 2015 14:07
-
-
Save sergeevabc/0f998609936c52ff011c to your computer and use it in GitHub Desktop.
Convert Uint8Array to String
https://github.com/mscdex/base91.js/issues/1#issuecomment-59297012
This file contains 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 Uint8ArrayToString(arr) { | |
var encodedString = String.fromCharCode.apply(null, arr), | |
decodedString = decodeURIComponent(escape(encodedString)); | |
return decodedString; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment