A character‑string expression that evaluates to the name of a code page. The returned character value is relative to target-codepage. The name that you specify must be a valid code page name available in the
DLC/convmap.cp file (a binary file that contains all of the tables that ABL uses for character management). If you supply a non‑valid name, the CODEPAGE-CONVERT function returns the Unknown value (
?). Before returning a character value, the CODEPAGE-CONVERT function converts
source-string from
source-codepage to
target-codepage. If you do not specify
target-codepage, no code page conversions occur.
A character‑string expression that evaluates to the name of a code page. The source‑codepage specifies the name of the code page to which
source-string is relative. The name that you specify must be a valid code page name available in the
DLC/convmap.cp file. If you supply a non‑valid name, the CODEPAGE-CONVERT function returns the Unknown value (
?). The default value of
source-codepage is the value of CHARSET attribute of the SESSION handle.
If source-string is a LONGCHAR variable, the
source-codepage argument is not valid. In this case, the code page of the LONGCHAR variable is used as the source code page.