Javascript:How to convert string to ASCII number sequence in JavaScript
Monday, June 30th, 2008<script type=”text/javascript”>
var str = “Hello World!”
var res = “”
for (i=0;i < str.length; i++) {
res += str.charCodeAt(i) + ‘,’;
}
res = res.substr(0, res.length - 1);
//Result: 72,101,108,108,111,32,87,111,114,108,100,33
document.write(res);
</script>