Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: How to convert non-ASCII output from qx

by ikegami (Patriarch)
on Jun 18, 2012 at 04:49 UTC ( [id://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).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-03-28 13:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found