IBM Extension
IBM Extension

UTF8STRING

The UTF8STRING function converts the argument specified into the corresponding UTF-8 string. The string returned has variable length. Users are advised to allow sufficient length for the receiving argument returned by this function. The maximum length returns is twice the length of the original argument.

The function type is alphanumeric.

Read syntax diagramSkip visual syntax diagram
Format

>>-FUNCTION UTF8STRING--(--argument-1--)-----------------------><

argument-1
Must be alphabetic, alphanumeric, DBCS or national, and must be at least one character in length.
End of IBM Extension
End of IBM Extension