I wish to change the codepage from 850 (on most systems) to 437, which is the cp that I need for my app. I know that on an XP system I am able to use the console command 'chcp 437', but I don't want to call that command from my app, because there's a risk it may not work on some systems.

Any ideas?