http://www.perlmonks.org?node_id=11128077


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

On my Windows 10 (Version 2004, although I was quite sure it were 20H2) if I chcp 65001, it looks OK.

I'm calling Strawberry Perl via its "portableshell.bat" and then call powershell on top of it, but I assume chcp is more or less independent from the way it is invoked.

Replies are listed 'Best First'.
Re^3: Emoji Progress Spinners
by parv (Parson) on Feb 08, 2021 at 23:31 UTC

    soonix, that is good and surprising to read.

    Version of Windows 10 Home I have is 20H2, OS build 19042.746. "Use Legacy console" option has been turned off. My experiment in 5 kinds of console windows ...

    Powershell 7.0.2 (was listed as "PowerShell 7-x64" in "Control Panel: Programs and Feature")
    ran chcp, then portableshell.bat, perl.exe; printed was ...
    ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒòº
    ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒ≡ƒîæ
    
    Cmd
    an "improvement" is that cursor stays in place and "?" is displayed for both clock and moon.
    Windows Terminal; chosen from "Tasks" menu after right click on the icon ...
    Powershell (icon with black background)
    same as before
    Cmd
    (ran only chcp and perl) success with Strawberry Perl, not needed to use WSL.
    Windows PowerShell (icon with blue background)
    (ran only chcp and perl) success with Strawberry Perl

    Nested dl parsing seems to be busted here.