In MariaDB, ORD() is a built-in string function that returns the numeric character code of the leftmost character of its string argument.
The ORD() function can handle multi-byte characters. This is in contrast to the ASCII() function, which only handles single-byte (8 bit) characters.