dotnet cli produces `?`s in output
See original GitHub issueSteps to reproduce
Run dotnet --help
Expected behavior
Readable text should output.
Actual behavior
????????? ????????? ?????? .NET (2.0.2)
?????????????: dotnet [runtime-options] [path-to-application]
?????????????: dotnet [sdk-options] [command] [arguments] [command-options]
path-to-application:
???? ? DLL-????? ??????????, ??????? ?????????? ?????????.
??????? SDK:
new ????????????? ???????? .NET.
restore ?????????????? ????????????, ????????? ? ???????? .NET.
run ?????????? ? ??????????? ?????????? ??????? .NET.
build ?????? ??????? .NET.
publish ?????????? ??????? .NET ??? ????????????? (??????? ????? ??????????).
test ?????????? ?????? ? ??????? ???????? ?????????? ??????, ?????????? ? ???????.
pack ???????? ?????? NuGet.
migrate ???????? ??????? ?? ?????? project.json ? ?????? ?? ?????? msbuild.
clean ??????? ???????? ?????? ??????.
sln ????????? ?????? ??????? (SLN).
add ?????????? ?????? ? ??????.
remove ???????? ?????? ?? ???????.
list ?????? ?????? ? ???????.
nuget ?????????????? ?????????????? ?????? NuGet.
msbuild ?????? Microsoft Build Engine (MSBuild).
vstest ?????? ????????? ????????? ?????? ?????????? ??? ?????????? ??????.
????? ?????????:
-v|--verbosity ????????? ?????? ??????????? ??? ???????. ?????????? ????????: q[uiet], m[inimal], n[ormal], d[etailed] ? diag[nostic].
-h|--help ???????? ???????.
????????? ??????? "dotnet ??????? --help" ??? ????????? ?????????????? ?????????? ? ???????.
sdk-options:
--version ??????????? ?????? ?????? SDK ??? .NET Core.
--info ??????????? ???????? ? .NET Core.
-d|--diagnostics ????????? ???????? ?????? ???????????.
runtime-options:
--additionalprobingpath <path> ???? ? ???????? ???????? ? ??????????? ???????.
--fx-version <version> ?????? ????????????? ????? ?????????, ??????? ??????? ???????????? ??? ??????? ??????????.
--roll-forward-on-no-candidate-fx ???? ????????????? ????? ????????? ?? ????????, ??????????? ?????.
--additional-deps <path> ???? ? ??????????????? ????? deps.json.
Environment data
dotnet --info
output:
????????? ????????? ?????? .NET (2.0.2)
Product Information:
Version: 2.0.2
Commit SHA-1 hash: a04b4bf512
Runtime Environment:
OS Name: Windows
OS Version: 10.0.15063
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.0.2\
Microsoft .NET Core Shared Framework Host
Version : 2.0.0
Build : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (6 by maintainers)
Top Results From Across the Web
c# - .Net Core - Using ANY dotnet command produces ...
This is verbatim the output I'm seeing when I start the dotnet --info command. On other machines, this command takes seconds to run,...
Read more >dotnet publish command - .NET CLI
The dotnet publish command's output is ready for deployment to a hosting system (for example, a server, PC, Mac, laptop) for execution.
Read more >dotnet command - .NET CLI
The dotnet command has two functions: It provides commands for working with .NET projects. For example, dotnet build builds a project.
Read more >dotnet build command - .NET CLI
The dotnet build command builds a project and all of its dependencies. ... To produce a library, omit the <OutputType> property or change ......
Read more >dotnet sln command - .NET CLI
The dotnet-sln command provides a convenient option to add, remove, and list projects in a solution file.
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 Free
Top 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
To summarize and add more detail, this issue can happen if you’re “language for non-Unicode programs” (console counts as one of those) / “System locale” does not match the Windows display language.
To fix that:
Also check that your command prompt is using a font that supports the characters in your display language:
Alternatively, to force the CLI to English set environment variable
DOTNET_CLI_UI_LANGUAGE=en-US
Hi. Coming from dotnet/cli#8685
What I don’t understand is why is non-unicode setting getting involved? Fall back to English would be nice, but doesn’t the dotnet cli print unicode characters, which could also display Russian or Japanese or any other character? I may be too inexperienced in character encoding to understand what the right solution is. Changing the non-unicode setting seems like a workaround and not a permanent solution. Powershell should have no problem handling unicode character at this age.