UTF8TOCHAR

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

Read syntax diagramSkip visual syntax diagram
>>-UTF8TOCHAR(x-+----+-)---------------------------------------><
                '-,c-'     

x
An expression that must have the CHAR type.

When x is converted from UTF-8 to CHAR, the CODEPAGE option is used to specify the target code page.

Start of changecEnd of change
Start of changeA restricted expression that specifies the code page of the source.

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

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