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 for business | Windows Server | User experience | PowerShell
Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.