webtelnet-proxy.js
function typedArrayToUnicodeString(ua) {
    var binstr = Array.prototype.map.call(ua, function (ch) {
        return String.fromCharCode(ch);
    }).join('');
    var escstr = binstr.replace(/(.)/g, function (m, p) {
        var code = p.charCodeAt(p).toString(16).toUpperCase();
        if (code.length < 2) {
            code = '0' + code;
        }
        return '%' + code;
    });
    return decodeURIComponent(escstr);
}
function typedArrayToUnicodeString(ua) {
    var binstr = Array.prototype.map.call(ua, function (ch) {
        return String.fromCharCode(ch);
    }).join('');
    var escstr = binstr.replace(/(.)/g, function (m, p) {
        var code = p.charCodeAt(p).toString(16).toUpperCase();
        if (code.length < 2) {
            code = '0' + code;
        }
        return '%' + code;
    });
    return decodeURIComponent(escstr);
}
function typedArrayToUnicodeString ( ua ) { var binstr = Array . prototype . map . call ( ua , function ( ch ) { return String . fromCharCode ( ch ) ; } ) . join ( '' ) ; var escstr = binstr . replace ( / (.) / g , function ( m , p ) { var code = p . charCodeAt ( p ) . toString ( 16 ) . toUpperCase ( ) ; if ( code . length < 2 ) { code = '0' + code ; } return '%' + code ; } ) ; return decodeURIComponent ( escstr ) ; }
uint array to string
uint array to string