Output encoding issue
If your system and work environment is English, you can ignore this encoding issue.
WARNING
This is actually a rendering issue in Windows Terminal, and other terminals like vscode terminal, Tabby, Hyper, wave works fine.
- If you use
[console]::OutputEncodingto modify the output encoding ofPowerShell, it may cause menu rendering problems. - If you must use it, please ensure that
[console]::OutputEncodingis added afterImport-Module PSCompletions. - It is also possible that there are other
PowerShellmodules that have modified the coding internally, which can also cause rendering problems. - If you run into rendering problems, you should first try putting
Import-Module PSCompletionsin front of it. - If you still have problems, you should empty your
$Profileconfiguration file and try only importPSCompletionsby runningImport-Module PSCompletions.
Note
If for some special reasons you must enable the Beta option in Regional Settings in the Control Panel, you can consider the following solutions.
- If you don’t need command tips.
- Just run the command
psc menu config enable_tip 0
- Just run the command
- If you need command tips.
- Use the command
psc config language en-USto change the language configuration to English, because there's no rendering problem with English characters, and the English command tips can be rendered normally. - Use other terminal shells.
- Use the command
- Don't check the
Betaoption inRegional Settingsin theControl Panel, as shown below. - Checking it will also cause menu rendering problems.
