func.ascii

The ASCII function takes a single argument of any character data type and returns an integer based on the first character data

The ASCII function takes a single argument of any character data type and returns an integer based on the first character data

Syntax

func.ascii(text)  integer

Returns the numeric code of the first character of the argument. In UTF8 encoding, returns the Unicode code point of the character. In other multibyte encodings, the argument must be an ASCII character.

Examples

func.ascii(get_column(table, 'TAX_SEGMENT'))
func.ascii('x')  135
Last modified November 27, 2023 at 12:56 PM EST: Restructured the file structure/a few changes (f6c58b8)