Powershell修改ISE中特殊字符


支持所有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 ÄÖÜäöüß

原文地址:Correcting ISE Encoding

本文链接: https://www.pstips.net/correcting-ise-encoding.html
请尊重原作者和编辑的辛勤劳动,欢迎转载,并注明出处!

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注