Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: How to convert non-ASCII output from qx

by ikegami (Pope)
on Jun 18, 2012 at 04:49 UTC ( #976743=note: print w/ replies, xml ) Need Help??

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).

Comment on Re: How to convert non-ASCII output from qx
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://976743]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2015-11-30 22:23 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (788 votes), past polls