| Scalabium Software | |
| Knowledge for your independence'. | |
|  Home  Delphi and C++Builder
        tips | 
| #82: How can I read the current code page of system? | 
| 
 | Sometimes in run-time you must detect the current values of code page. To detect the code page of Windows operation system you must call the GetACP function from Windows API. This function will return the value: 
 If you needs to read the code page of "DOS" sessions, you must call the GetOEMCP function from Windows API. This function will return the value: 
 Also you can check the valids of code page. For example, if IsValidCodePage(866) then
  ShowMessage('Correct MS-DOS russian code page')
 | 
|       | Copyright© 1998-2025, Scalabium
        Software. All rights reserved. |