question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet cli produces `?`s in output

See original GitHub issue

Steps 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:closed
  • Created 6 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

8reactions
nguerreracommented, Feb 28, 2018

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:

  1. Start ->Control Panel
  2. Clock, Language and Region
  3. Region
  4. Administrative tab
  5. Language for non-Unicode programs -> Change system locale
  6. Pick a language that matches Windows’ display language

Also check that your command prompt is using a font that supports the characters in your display language:

  1. Start -> Command Prompt
  2. Click on command prompt icon in top left of window
  3. Properties
  4. Select an appropriate font

Alternatively, to force the CLI to English set environment variable DOTNET_CLI_UI_LANGUAGE=en-US

2reactions
yangsfangcommented, Feb 28, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found