Skip to content

Instantly share code, notes, and snippets.

@JavaScript-Packer
Created August 21, 2015 18:32
Show Gist options
  • Select an option

  • Save JavaScript-Packer/adac8b6eeefd36de59ef to your computer and use it in GitHub Desktop.

Select an option

Save JavaScript-Packer/adac8b6eeefd36de59ef to your computer and use it in GitHub Desktop.
Uint8Array to String
function uintToString(uintArray) {
var encodedString = String.fromCharCode.apply(null, uintArray),
decodedString = decodeURIComponent(escape(encodedString));
return decodedString;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment