• Reference Guide


ascii_cp(c, cp)
For a given character c (the Char type), returns its numerical code (the Int type) relative to a code-page (the cp parameter of the Int type). If a Unicode code is of interest, use the CP_UNICODE constant for the code-page.
A character from a Unicode code can be obtained by a simple type conversion: [Int]c. The opposite conversion to the Unicode code is also possible: [Int]c
Example: ascii_cp('ř', 1250) returns 248.

See Also