Powershell7 中文乱码问题解决
📝
内容提要
修改$Profile文件(notepad.exe $Profile),添加$OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding说明:上述操作修改了输出编码为UTF-8,兼容了大部分的程序输出的中文。