UNICODE function

UNICODE(text) UNICODE(text)

text — Text or { Text }

The text string whose first character is evaluated.

Returns — Number or { Number }

A Unicode code point.

Returns the Unicode code point for the first character of the given text string. UNICODE("A")UNICODE("A") returns 65. Use UNICHAR to perform the reverse operation, that is, to return a character corresponding to a certain Unicode code point.

The CODE and UNICODE functions are equivalent.

Examples

UNICODE("A")UNICODE("A")

Returns 65.

UNICODE({ "A", "B", "C" })UNICODE({ "A"; "B"; "C" })

Returns the array { 65, 66, 67 }{ 65; 66; 67 }.