conhost.exe based application), text is written or read using the currently specified code page. chcp and mode con: cp. System.Text.Encoding.GetEncodings(). System.Text.Encoding::GetEncoding(). C_codepage.NLS files under %SYSTEMROOT%\System32