Version: v0.8.1 - Beta.  We welcome contributors & feedback.

String.charToUnicode

charToUnicode() -> string

Description

Get the Unicode value of a single string character.

This is the opposite of unicodeToChar.

'a'.charToUnicode()
//= 97

'xyz'.getChar(3).charToUnicode()
//= 122

See Also