charCodeAt, fromCharCode
s = '대한민국\nKorea'; s = s.replace("\n","\\n"); for(i=0; i<s.length; i++) { n = s.charCodeAt(i); c = String.fromCharCode(n); document.write('<br>'+n+' '+c); } ...
http://qindex.info/i.php?x=2634

-