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

Zhuoran Yi 0 Reputation points
2023-05-11T09:39:50.46+00:00

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)

1

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

2

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.
11,195 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 34,271 Reputation points Microsoft Vendor
    2023-05-12T02:16:06.5933333+00:00

    Hi,

    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.

    https://learn.microsoft.com/en-us/windows/win32/intl/code-pages

    https://learn.microsoft.com/en-us/windows/win32/intl/code-page-identifiers

    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.