I found an elegant code to converts ArrayBuffer into charCode.
But I need char, instead of charCode.
function ab2s (buf) {
var view = new Uint8Array (buf);
return Array.prototype.join.call (view, ",");
}
I tried
return Array.prototype.join.call (view, function() {String.fromCharCode(this)});
But this is crap.
Thanks for answers.