Character codes: Difference between revisions
Content added Content deleted
m (→{{header|J}}) |
m (→{{header|J}}) |
||
Line 1,169: | Line 1,169: | ||
97 98 99 9786</syntaxhighlight> |
97 98 99 9786</syntaxhighlight> |
||
<code>7 u:</code> converts to utf-16 (<code>8 u:</code> would convert to utf-8, and <code>9 u:</code> would convert to utf-32), and <code>3 u:</code> converts what the uncode consortium calls "code points" to numeric form. Since J character literals are utf-8 (primarily because that's how OS |
<code>7 u:</code> converts to utf-16 (<code>8 u:</code> would convert to utf-8, and <code>9 u:</code> would convert to utf-32), and <code>3 u:</code> converts what the uncode consortium calls "code points" to numeric form. Since J character literals are utf-8 (primarily because that's how OS interfaces work), by itself <code>3 u:</code> would give us: |
||
<syntaxhighlight lang="j"> 3 u: 'abc☺' |
<syntaxhighlight lang="j"> 3 u: 'abc☺' |