ascii ( text ) → integerReturns 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.
ascii('x') → 120Functions / String Functions And Operators
Returns the numeric code of the first character of the argument.
Reading PG 18current·documented in 27 of 27 versions, 7.1 to 20
ascii ( text ) → integerReturns 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.
ascii('x') → 120Definition snapshot: b7bd9cda · English manual source