PowerShell: encoding

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_character_encoding?view=powershell-7.2

In general, Windows PowerShell uses the Unicode UTF-16LE encoding by default. However, the default encoding used by cmdlets in Windows PowerShell is not consistent.

PowerShell 默认使用UTF-16LE编码, 然而cmdlets使用的编码并不一致( 巨硬真是扯淡 )

 

 

 

 

 

 

 

 

 

 https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.2

https://docs.microsoft.com/en-us/powershell/scripting/whats-new/migrating-from-windows-powershell-51-to-powershell-7?view=powershell-7.2

posted @ 2022-03-29 20:49  ascertain  阅读(123)  评论(0编辑  收藏  举报