Javascript String hexDecode8()
String.prototype.hexDecode8 = function(){ var j;/*from w w w . j a va 2 s .c o m*/ var hexes = this.match(/.{1,2}/g) || []; var back = ""; for(j = 0; j<hexes.length; j++) { back += String.fromCharCode(parseInt(hexes[j], 16)); } return back; }