My bash.exe cannot run properly (Output ????????????????) and I cannot find what the error is

Zhuoran Yi 0 Reputation points

My bash.exe cannot run properly, when I try to run the command bash in my Windows PowerShell, It first freezes for a while and then pops up "????????????????" (Just as what is shown in the picture following)


But when I use the command wsl , my WSL can be running properly, like that


Why did this error happen and what should I do to fix it?

My Computer running Windows10 (family ver.) 22H2 , version 19045.2965

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,944 questions
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,219 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 32,156 Reputation points Microsoft Vendor


    The question marks in the output could be an issue related to the code page. Change the code page using chcp like chcp 936 or chcp 65001 and see if the output of bash becomes normal.

    Best Regards,

    Ian Xue

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.