Javascript String fromBytes( bytes ) {
String.fromBytes = function( bytes ) { var result = ""; for ( var i = 0; i < bytes.length; i += 1 ) { result += String.fromCharCode( bytes[i] ); } return result;//w ww . j a v a 2 s .c o m };