|On this page|
Returns the code point of the first UTF8 character in the given string.
If the prefix of the string isn’t a valid UTF8 encoding, or is empty, -1 is returned.
Overlong UTF8 encodings will return -1.
The string to change to code point.
The code point for the first UTF8 character in string.