Release 10.1A: OpenEdge Development:
Internationalizing Applications

> ## Character terminals

> To determine the code page of a character terminal, use one of the following techniques:

> - Read the terminal’s documentation.

> - Use the terminal’s setup screens. Many terminals have setup screens that let you view or modify the code page.

> Both of these techniques have one drawback: If your operating system contains device drivers that perform code-page conversions, they might convert the code page from that of the operating system to a new one. If this occurs, OpenEdge does not see the code page of the operating system, but rather the new one. You must determine which code page OpenEdge actually sees.

> | To determine which code page OpenEdge actually sees:

> 1. Start OpenEdge with `-cpinternal` set to `undefined` and set the `TERM` environment variable to disable `PROTERMCAP` `IN/OUT` mapping.

> 2. Execute the following code fragment:

>     REPEAT:
>        READKEY.
>        DISPLAY LASTKEY CHR(LASTKEY).
>     END.

> 3. Press several keys, including keys that correspond to the 8-bit extended characters. For each keystroke, OpenEdge displays the 8-bit numeric value received for that key and echoes the character back to the terminal. If the character does not echo properly, your system is configured incorrectly. If the character does echo properly, the numeric value OpenEdge displays is the 8-bit value for that character.

> 4. Once you have several such pairs of characters and numbers, compare them against likely code pages to determine the correct code page.

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