`dotnet publish` shows garbled characters when running on PMC on OS with Traditional Chinese language
See original GitHub issueBug transferred from VS Feedback
Describe the bug
A clear and concise description of what the bug is.
This issue has been moved from a ticket on Developer Community.
程序包管理器控制台主机版本 6.4.0.111 乱码
dotnet publish 命令乱码
Original Comments
Feedback Bot on 11/16/2022, 06:37 PM:
(private comment, text removed)
Feedback Bot on 11/17/2022, 00:07 PM:
(private comment, text removed)
Original Solutions
(no solutions)
To Reproduce
- Set Windows language to Traiditional Chinese
- Set Visual Studio Language to same as OS system.
- Create a New Console project
- Open Package Manager Console in the recently created Console App
- Run “dotnet publish” in Package Manager Console.
Exceptions (if any)
Further technical details
- Include the output of
dotnet --info
- The IDE (VS / VS Code/ VS4Mac) you’re running on, and its version
Issue Analytics
- State:
- Created 10 months ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
[Loc]With .NET 7 Preview 3 SDK zip installed on local OS ...
[Loc]With .NET 7 Preview 3 SDK zip installed on local OS, some garbled characters appear when installing wasm-tools for the first time #24757....
Read more >The WebService published to Windows Server 2019 IIS ...
When the WebService reads these text data, traditional Chinese will be displayed as garbled code. Internet Information Services.
Read more >C# localization not working in Chinese OS but ...
I have an application which uses resource files to localize text. The EXE is in a separate project and resources are in separate...
Read more >Messy Chinese character display at Visual Studio 2019
I got messy displaying some Traditional Chinese characters inside CPP codes, which has no display issue at Notepad++.
Read more >Untitled
#is 100 emoji png, Ecuador language translator, Dimensions of a mini workbench! Images that represent culture, Christian louboutin sneakers?
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @LeaFrock, here is a workaround for now:
The difference is that PMC is a powershell console, to change chcp in powershell console you need not only to run chcp but to run the following:
Thanks for reporting back, glad to hear it worked. 😄 Now let’s hope that the fix I wrote works without breaking any legacy scenarios.