Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2014-12-27 21:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls