How to do proper Unicode and ANSI output redirection on cmd.exe?

后端 未结 2 1927
执笔经年
执笔经年 2020-12-09 12:52

If you are doing automation on windows and you are redirecting the output of different commands (internal cmd.exe or external, you\'ll discover that your log fi

2条回答
  •  情歌与酒
    2020-12-09 13:29

    binmode(STDOUT, ":unix");
    

    without

    use encoding 'utf8';
    

    Helped me. With that i had wide character in print warning.

提交回复
热议问题