Ascii

See Also: String Functions, Character

Purpose

Ascii returns the code point of a specified character.

Return Type

Integer

Syntax

(Ascii( {character} ))

What It Does

ASCII returns the number of the character according to the Unicode standard. Up until character 127 this matches the ASCII table. See https://unicode-table.com/ for an overview of all the available characters and symbols. Note that code points are commonly displayed as hexadecimal value where integers are usually displayed in decimal form.

Note that for composite characters (characters build from multiple code points) the ASCII function returns the first code point. Use NormalizeString to make sure accented characters are normalized to a single code point.

Move (Ascii("©")) to iCopyright

In this example iCopyright will contain 169.