var str = String.fromCharCode(1052,1086,1089,1082,1074,1072); document.write(str); document.write('<br>'); for (var i = 0; i < str.length; i++) { document.write(str.charCodeAt(i)); }