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.