UTF8TOCHAR

UTF8TOCHAR(x) returns a CHAR value holding x converted from UTF-8.

Read syntax diagramSkip visual syntax diagramUTF8TOCHAR( x,c)
x
An expression that must have the CHAR type.
c
A restricted expression that specifies the code page of x.

If omitted, it defaults to the value in the CODEPAGE compiler option.

If specified, the code page must have a computational type and is converted to FIXED BINARY (31,0). The code page must specify a valid, supported code page.

Note: If x holds invalid UTF-8 data, the generated code raises the ERROR condition.