UTF8TOWCHAR

UTF8TOWCHAR(x) returns a WCHAR value holding x converted from UTF-8 to UTF-16.

Read syntax diagramSkip visual syntax diagramUTF8TOWCHAR( x)
x
An expression that must have the CHAR type. x is converted from UTF-8 to UTF-16.

You can use UTF8TOWCHAR(x) in restricted expressions.

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