支持所有PS版本
当你在ISE中运行控制台程序时,非标准的字符串如“ä” 或“ß”将不能正确的显示在结果中。要纠正这种错误的ISE编码请启用控制台回显。例如这样操作:
# Repair encoding. This REQUIRES a console app to run first because only # then will ISE actually create its hidden background console $null = cmd.exe /c echo [Console]::OutputEncoding = [System.Text.Encoding]::UTF8 # Now all is fine cmd.exe /c echo ÄÖÜäöüß
本文链接: https://www.pstips.net/correcting-ise-encoding.html
请尊重原作者和编辑的辛勤劳动,欢迎转载,并注明出处!
请尊重原作者和编辑的辛勤劳动,欢迎转载,并注明出处!