UnicodeVal (Magic xpa 2.x)

Unicode Character: A Unicode character whose value is translated into a numeric format. If the input string contains more than one character, the first character is returned.

Returns:

This function returns a decimal number representing the Unicode value.

If the string is empty the function returns 0. If the string evaluates to NULL, the returned value is NULL. In other cases the numeric value of the first character in the string is converted to a numeric format.