APLX Help : Help on APL language : System Functions & Variables : ⎕UCS Convert text to/from Unicode
|
|
![]() |
|
Unicode is a worldwide standard which encodes characters as integers or 'code points'. It includes representations of all the international and special characters used in modern computer applications. APL characters, including all those used in APLX, are defined in the Unicode standard, although there are some ambiguities about a few of them. This makes it possible to exchange character data between APLX and other applications (including other APL interpreters which support Unicode), without encountering problems with character translation and 'code tables', provided that the text being transferred can be represented in the APLX character set. The system function If the argument is a character array, If the argument is an integer array, For example: ⎕UCS 'X←⍳10' 88 8592 9075 49 48 ⎕UCS 88 8592 9075 49 48 X←⍳10 ⎕UCS 937 8364 223 ?€ß In the last example, the Unicode value 937 (hex 03A9, representing the Greek capital omega character) was translated to the 'missing character' value (question mark) because it has no equivalent in the APLX character set. A different 'missing character' can be set using ⎕MC←'$' ⎕UCS 937 8364 223 $€ß See the section on the APLX Character Set for details of the mapping between APLX characters and Unicode. |
|
APLX Help : Help on APL language : System Functions & Variables : ⎕UCS Convert text to/from Unicode
|
Copyright © 1996-2010 MicroAPL Ltd