How can I change the code page from within my perl code? I want to have the program switch to code page 1252. Of course, at a command prompt, I could just type 'chcp 1252' before running my program, but I would like to be able to start up my program by clicking on it, so that is not an option. I tried
but that seems to spawn a shell, change the code page there, and then exit, not changing the code page in the current shell. How can I get perl to change the current shell.