Character codes: Difference between revisions

Added APL
(added Io entry)
(Added APL)
Line 73:
write( code( 97 ) );
end.</lang>
 
=={{header|APL}}==
{{works with|Dyalog APL}}
In Dyalog, <tt>⎕UCS</tt> with an integer returns the corresponding Unicode character:
<lang apl> ⎕UCS 97
a</lang>
and <tt>⎕UCS</tt> with a character returns the corresponding code:
<lang apl> ⎕UCS 'a'
97</lang>
Like most things in APL, <tt>⎕UCS</tt> can also be used with an array or with a string (which is an array of characters):
<lang apl> ⎕UCS 65 80 76
APL
⎕UCS 'Hello, world!'
72 101 108 108 111 44 32 119 111 114 108 100 33</lang>
 
=={{header|AppleScript}}==
519

edits