Last active
May 31, 2024 10:00
-
-
Save chenxiex/bc13e6687d84e469ee31a5ea6efd7576 to your computer and use it in GitHub Desktop.
Set UTF-8 as default encoding in PowerShell 7+
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # write to $PROFILE to persist | |
| $OutputEncoding = [Console]::InputEncoding = [Console]::OutputEncoding = New-Object System.Text.UTF8Encoding |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment