charCodeAt, fromCharCode
by webproger on 2020-02-09
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);
}