Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Forcing UTF-8 output on STDOUT

by ikegami (Patriarch)
on Feb 11, 2021 at 06:21 UTC ( [id://11128215]=note: print w/replies, xml ) Need Help??


in reply to Re: Forcing UTF-8 output on STDOUT
in thread Forcing UTF-8 output on STDOUT

The following would also do the trick:

use open ':std', ':encoding(UTF-8)';

It adds the encoding layer to STDIN, STDOUT and STDERR, it does so at compile time, and it sets the default encoding for open in scope.

Seeking work! You can reach me at ikegami@adaelis.com

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (8)
As of 2024-03-29 15:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found