Fix binaryStringToUtf8

This commit is contained in:
Richard Warburton 2015-09-08 22:11:44 +12:00
parent f041dcd8bb
commit 767ab55060
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ function utf8ToBase64(str) {
function binaryStringToUtf8(binstr) {
var escstr = binstr.replace(/(.)/g, function (m, p) {
var code = p.charCodeAt(p).toString(16).toUpperCase();
var code = p.charCodeAt(0).toString(16).toUpperCase();
if (code.length < 2) {
code = '0' + code;
}