WebSpeed
Product Update Bulletin


Converting Code-page Names Between MIME and Progress Formats

You can convert a code-page name between MIME and Progress 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:

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 Progress code-page name, output-name is set to blank.

The following example converts the value of cMimeCharset to Progress 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 © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095