Hexadecimal to string in javascript
<pre><code>function hex2a(hex) 
{
    var str = '';
    for (var i = 0; i &lt; hex.length; i += 2)
        str += String.fromCharCode(parseInt(hex.substr(i, 2), 16));
    return str;
}     
</code></pre>

<p>This function is not working in chrome, but it is working fine in mozila. can anyone please help.</p>

<p>Thanks in advance</p>
