literal unescape and escape

ไธ€ใค็›ฎใฎใƒ†ใ‚ญใ‚นใƒˆใ‚จใƒชใ‚ขใฎ Javascript ๆ–‡ๅญ—ๅˆ—ใƒชใƒ†ใƒฉใƒซๅ†…ใฎ \u00bc, \u{10140}, \x2669, \xd834\xdd3d ็ญ‰ใฎใ‚จใ‚นใ‚ฑใƒผใƒ—ๆ–‡ๅญ—ใ‚’ โ€œยผโ€, โ€œ๐…€โ€, โ€œโ™ฉโ€, โ€œ๐„ฝโ€ ็ญ‰ใฎ Unicode ๆ–‡ๅญ—ใซๅค‰ๆ›ใ—ใฆใ€ไบŒใค็›ฎใฎใƒ†ใ‚ญใ‚นใƒˆใ‚จใƒชใ‚ขใซ่กจ็คบใ—ใพใ™ใ€‚ไธ€ๆ–นใงใ€ไบŒใค็›ฎใฎใƒ†ใ‚ญใ‚นใƒˆใ‚จใƒชใ‚ขใฎ Javascript ๆ–‡ๅญ—ๅˆ—ใƒชใƒ†ใƒฉใƒซๅ†…ใฎ โ€œยผโ€, โ€œ๐…€โ€, โ€œโ™ฉโ€, โ€œ๐„ฝโ€ ็ญ‰ใฎ Unicode ๆ–‡ๅญ—ใ‚’ \u00bc, \u{10140}, \u2669, \u{1d13d} ็ญ‰ใฎใ‚จใ‚นใ‚ฑใƒผใƒ—ๆ–‡ๅญ—ใซๅค‰ๆ›ใ—ใฆไธ€ใค็›ฎใฎใƒ†ใ‚ญใ‚นใƒˆใ‚จใƒชใ‚ขใซ่กจ็คบใ—ใพใ™ใ€‚

Escape characters such as \u00bc, \u{10140}, \x2669, \xd834\xdd3d in Javascript string literals in the first text area are converted to Unicode characters such as โ€œยผโ€, โ€œ๐…€โ€, โ€œโ™ฉโ€, โ€œ๐„ฝโ€ and displayed in the second text area. On the other hand, Unicode characters such as โ€œยผโ€, โ€œ๐…€โ€, โ€œโ™ฉโ€, โ€œ๐„ฝโ€ in Javascript string literals in the second text area are converted to escape characters such as \u00bc, \u{10140}, \u2669, \u{1d13d} and displayed in the first text area.

ไธ€่ฆง
    Copyleft ๐Ÿ„ฏ 2022 Taiji Yamada <taiji@aihara.co.jp>