SetConsoleOutputCP

  BOOL SetConsoleOutputCP(IDCodePage)    
  UINT IDCodePage; /* Identifies the code page to set */

The SetConsoleOutputCP function sets the output code page used by the console associated with the calling process. This code page is used to translate character values into the images displayed in the console window.

Parameters

IDCodePage

Identifies the code page to set.

Return Value

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.

See Also

GetConsoleCP, SetConsoleCP, GetConsoleOutputCP