http://www.perlmonks.org?node_id=976743


in reply to How to convert non-ASCII output from qx

On my system, the active CP seems to change between 437 and 1252 at times

1252 is your ANSI CP. 437 is your OEM CP. Don't ask me what's used for what, but it's easy to find by testing. (I think you'll find the ACP used for systems calls, whereas the OEMCP will be used for console IO.)

Encode's encode and decode functions can handle Windows code pages. Just prepend "cp" to the number (e.g. cp1252, cp437).