Release 10.1A: OpenEdge Application Server:
Administration

> ## 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.

> Here is the syntax:

> 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).

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095