Try OpenEdge Now
skip to main content
Internationalizing Applications
Understanding Code Pages : Determining which code page an application component uses : Windows screen and keyboard
 

Windows screen and keyboard

The code page used for the Windows screen and keyboard is configurable by the user. To find the settings, look at the regional settings in the control panel window.
To test individual characters with the ALT key and the numeric keypad:
1. In Windows, start a simple application, such as Notepad, that lets you enter characters.
2. Press and hold ALT, then press 0 on the numeric keypad, followed by a three-digit decimal number on the numeric keypad, for a total of four digits.
3. Release the ALT key. The character corresponding to the three-digit decimal number appears on the screen.
4. Repeat Steps 2 and 3 to get several pairs of characters and numbers.
5. Compare your character-number pairs against likely code pages to determine the correct code page.
Another way to get a list of character-number pairs to compare against a likely code page is to run OpenEdge on Windows, set -cpinternal to undefined, and run the following code fragment:
REPEAT:
READKEY.
DISPLAY LASTKEY CHR(LASTKEY).
END.