http://www.cplusplus.com/forum/windows/9797/
After a bit of googling I came across the following:
http://msdn.microsoft.com/en-us/library/ms686036(VS.85).aspx -- SetConsoleOutputCP
http://msdn.microsoft.com/en-us/library/dd317756(VS.85).aspx -- code page ids
http://msdn.microsoft.com/en-us/library/ms683169(VS.85).aspx -- GetConsoleOutputCP
I suppose the way to do this would be:
| |
UTF-8 is probably more easily portable, but then you have to make sure your text is UTF-8 encoded (and since cyrillic characters are multi-byte in UTF-8... things like std::string::length() and strlen() will return values higher than the actual number of characters).
Apparently you might also need to worry about SetConsoleCP, too for the input -- so you might have to look that up as well.
blech. Hope that works for you.