BOOL SetConsoleCP(IDCodePage) | |||||
UINT IDCodePage; | /* Identifies the code page to set | */ |
The SetConsoleCP function sets the code page used by the console associated with the calling process. This code page is used to translate keyboard input into the corresponding character value.
IDCodePage
Identifies the code page to set.
The return value is TRUE if the function was successful, or FALSE if an error occurred. Use the GetLastError function to obtain extended error information.
GetConsoleCP, GetConsoleOutputCP, SetConsoleOutputCP