in reply to char2oem
You might also just change the code page used in the Console window to match what the program's generating.
Thta's SetConsoleCP and SetConsoleOutputCP in the Win32 API.
—John