Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: How to convert non-ASCII output from qxby ikegami (Patriarch) |
on Jun 18, 2012 at 04:49 UTC ( [id://976743]=note: print w/replies, xml ) | Need Help?? |
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).
In Section
Seekers of Perl Wisdom
|
|