OS/2 Code Page Options for PM Applications

┌───Application───────────────────────────┐    ┌──────────────┐
│                                         │───┤ CONFIG.SYS   │
│ ┌─DosSetProcessCp (see note 1)────────┐ │    │ contains the │
│ │ Set code page for this process      │ │    │ default code │
│ │ (keyboard/display not changed).     │ │    │ page set by  │
│ └─────────────────────────────────────┘ │    │ CODEPAGE=    │
│                                         │    └──────────────┘
│ ┌─WinQueryCpList (see note 2)─────────┐ │
│ │ Query list of supported code pages. │ │
│ └─────────────────────────────────────┘ │
│                                         │
│ ┌─WinSetCp, WinQueryCp (see note 1)───┐ │
│ │ Set or query code page for          │┼──────┐ ┌─────Keyboard
│ │ translating incoming messages       │ │    │   │
│ │ (keystrokes).                       │ │    │─────│
│ └─────────────────────────────────────┘ │    │─────│  Message
│                                         │    │─────│  queue
│ ┌─GpiSetCp, GpiQueryCp (see note 2)───┐ │    └─────┘
│ │ Set or query default GPI code page. │ │
│ └─────────────────────────────────────┘ │
│                                         │
│ ┌─GpiCreateLogFont (see note 2)───────┐ │
│ │ Create font in a code page.         │─┼─────Display
│ └─────────────────────────────────────┘ │
│                                         │
│ ┌─WinCpTranslateChar (see note 2)─────┐ │
│ ├─WinCpTranslateString (see note 2)───┤ │
│ │ Convert character or string from    │──────Disk
│ │ one code page to another.           │ │
│ └─────────────────────────────────────┘ │
│                                        │
│                    └────────────────────┼─────LAN or host
└─────────────────────────────────────────┘

Note 1:  Either of the two ASCII code pages specified in CONFIG.SYS.
         Code page 1004 is also supported.
Note 2:  Any supported ASCII or EBCDIC code page as reported by
         WinQueryCpList.
         Code page 1004 is also supported.


[Back: Windowed PM Applications]
[Next: OS/2 Font Support for Multiple Code Pages]