Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Emoji Progress Spinners

by soonix (Canon)
on Nov 05, 2021 at 08:30 UTC ( [id://11138454]=note: print w/replies, xml ) Need Help??


in reply to Re: Emoji Progress Spinners
in thread Emoji Progress Spinners

Meanwhile, if I need Unicode output on a Windows console, I put the following near the top of the script:
use Win32::Console; my $codepage = Win32::Console::OutputCP(); Win32::Console::OutputCP(65000); binmode STDOUT, ':encoding(cp65000)';
AFAIK, these settings are per-process, otherwise I'd change this into a BEGIN block with a corresponding END block - that's why I saved the $codepage, you can discard this line if you don't need to restore it within the script.

Replies are listed 'Best First'.
Re^3: Emoji Progress Spinners
by parv (Parson) on Nov 06, 2021 at 15:05 UTC

    Thank you for the clue.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-26 05:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found