Chr(n:Int):Str
Chr$(n:Int):Str

Returns a character, given the character code. For example, Chr(65) returns "A", and Chr(8745) returns "∩".

In PCC2 since 1.99.12, this returns the string containing Unicode character n. In versions before 1.99.12, and in PCC 1.x, this function returns a character from the extended ASCII set used as game character set.

PCC2 supports the WGL4 character set for display and thus supports most European languages including Greek and Russian. You can place other characters in strings, but PCC2 will not be able to display them.

PCC 1.x's character repertoire depends on the font used; the default is codepage 437, but fonts in codepage 866 (cyrillic) exist in the CCFonts package.

If the parameter is EMPTY, returns EMPTY.

Since: PCC 0.98.5, PCC2 1.99.8

See also: Elementary Functions