Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: (Windows) Encode vs. use open

by jimbojones (Friar)
on Mar 29, 2005 at 23:21 UTC ( #443301=note: print w/ replies, xml ) Need Help??


in reply to (Windows) Encode vs. use open

Hi

Reading the doc, I think you need a ":std" pragma as well, when you are printing to STDOUT. From "open" pragma doc.

The :std subpragma on its own has no effect, but if combined with the :utf8 or :encoding subpragmas, it converts the standard filehandles (STDIN, STDOUT, STDERR) to comply with encoding selected for input/output handles. For example, if both input and out are chosen to be :utf8, a :std will mean that STDIN, STDOUT, and STDERR are also in :utf8. On the other hand, if only output is chosen to be in :encoding(koi8r), a :std will cause only the STDOUT and STDERR to be in koi8r. The :locale subpragma implicitly turns on :std


Comment on Re: (Windows) Encode vs. use open
Re^2: (Windows) Encode vs. use open
by Anonymous Monk on Mar 29, 2005 at 23:42 UTC
    That helped. I found out that "combining" works only by putting a use open ':std'; statement after the original pragma.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2014-12-28 15:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (182 votes), past polls