CONVERT

Converts one string from a specified code page to another.

Note: If the outputCodePage is double byte such as UTF-16, or if it has byte order marks, such as UTF‑8, other string functions such as REVERSE will not function as expected.
Note: On Solaris and z/OS the valid code pages will be dependent on what is installed on the system. On other operating systems, the valid code pages will be those that are supported by ICU (International Components for Unicode).
Note: To use CONVERT on a 64-bit Solaris server, the 64-bit libconv.so object must be installed and must be in the LD_LIBRARY_PATH system variable.

Syntax

CONVERT(string, inputCodePage, outputCodePage)

Arguments

Argument Description Default
string The string to convert. None
inputCodePage The codepage string is in. None
outputCodePage The codepage string is in. None

Results

Result Description
Return The converted String.
%%RC 0
%%RM A nullstring (“)
%%RV Always set to 0