Newer Version Available

This content describes an older version of this product. View Latest

ascii()

Returns the UTF-8 code value of a character n.

Syntax

ascii(n)

Usage

Returns null if n is null. The null character (0) is not allowed.

Example

1q = foreach q generate ascii("a") as int_value;
2- -int_value == 97