UTF8STG

UTF8STG returns a FIXED BIN value that specifies the number of bytes that must be present if the input character is the start of a valid UTF-8 character.

Read syntax diagramSkip visual syntax diagramUTF8STG( x)
x
Specifies the input character. x must be of the type CHAR(1).

The function returns zero if the character cannot be the start of a valid UTF-8 character. For example, if the character has the value '80'x, UTF8STG returns zero.