Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The console window displays garbled characters when type "dotnet --info" #19996

Closed
quanljh opened this issue Aug 23, 2021 · 4 comments
Closed
Labels
untriaged Request triage from a team member

Comments

@quanljh
Copy link

quanljh commented Aug 23, 2021

Description

When type "dotnet --info" in console window, it displays garbled characters in the output information. My computer language is Japanese.

Configuration

You can find my configuration in the attachment
image

image

And console program also displays ??.

image

The code page is UTF-8 by default.
image

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Request triage from a team member label Aug 23, 2021
@KalleOlaviNiemitalo
Copy link

I tried running set DOTNET_CLI_UI_LANGUAGE=ja-JP and chcp 65001 and dotnet --info, in cmd on Windows 10 Version 21H1 (OS Build 19043.1165).

  • In conhost, using "Consolas" font:
    Question marks in rectangles appear, but if I copy them to the clipboard and paste to WordPad, then Japanese characters appear in WordPad.
  • In Windows Terminal Preview 1.10.1933.0, using "Consolas" font:
    Japanese characters appear.
  • In OpenConsole.exe copied from Windows Terminal Preview 1.10.1933.0, using "Consolas" font:
    Japanese characters appear.

I think this is a conhost issue and will be fixed in some later version of Windows when the changes from OpenConsole have been merged in.

@quanljh
Copy link
Author

quanljh commented Aug 24, 2021

@KalleOlaviNiemitalo Thanks for helping to identify the root cause, if I copy the question mark characters to another editor then Japanese characters appear. Or If I change the font of conhost, the Japanese characters also display as normal.
Since this is a conhost issue, I'll close this issue. Thanks.

@KalleOlaviNiemitalo
Copy link

microsoft/terminal#10478 may have fixed this in OpenConsole. I don't know which version of Windows will include a conhost with this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

2 participants