Converting code-page names between MIME and OpenEdge formats
You can convert a code-page name between MIME and OpenEdge formats by running the convcp.p procedure, which resides in the adecomm directory.
This is the convcp.p syntax:
Table 58. Syntax
convcp.p(input-name, direction:U, OUTPUT output-name)
|
input-name
A CHARACTER expression indicating the code-page name to be converted.
direction
A CHARACTER indicating one of the following:
"toProg" (to convert from MIME to OpenEdge).
"toMime" (to convert from OpenEdge to MIME).
output-name
A CHARACTER expression indicating the name of a CHARACTER variable to contain the result.
If input-name is not a valid MIME or OpenEdge code-page name, output-name is set to blank.
The following example converts the value of cMimeCharset to OpenEdge format and stores the result in cProCharset:
RUN adecomm/convcp.p(cMimeCharset, "toProg":U, OUTPUT cProCharset).
|
The following example converts the value of cProCharset to MIME format and stores the result in cMimeCharset:
RUN adecomm/convcp.p(cProCharset, "toMime":U, OUTPUT cMimeCharset).
|