tests in progress, fixed utf characters conversion in toAscii

This commit is contained in:
Marek Kotewicz
2015-01-13 12:49:10 +01:00
parent 9e0de57a82
commit 380d9862c3
5 changed files with 130 additions and 24 deletions

View File

@ -244,12 +244,12 @@ var web3 = {
if (hex.substring(0, 2) === '0x')
i = 2;
for(; i < l; i+=2) {
var code = hex.charCodeAt(i);
var code = parseInt(hex.substr(i, 2), 16);
if(code === 0) {
break;
}
str += String.fromCharCode(parseInt(hex.substr(i, 2), 16));
str += String.fromCharCode(code);
}
return str;