remkop / picocli

Picocli is a modern framework for building powerful, user-friendly, GraalVM-enabled command line apps with ease. It supports colors, autocompletion, subcommands, and more. In 1 source file so apps can include as source & avoid adding a dependency. Written in Java, usable from Groovy, Kotlin, Scala, etc.

Home Page:https://picocli.info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to solve the problem of garbled Chinese output

Afterlll opened this issue · comments

How to solve the problem of garbled Chinese output
image
image

Which version of picocli are you using, and which operating system (and version) and which shell application are you using?

Which version of picocli are you using, and which operating system (and version) and which shell application are you using?

Which version of picocli are you using, and which operating system (and version) and which shell application are you using?

The picocli version used is 4.7.5, the operating system is Windows11, and the programming language is java

The shell application is Command Prompt? (%windir%\system32\cmd.exe)?

The shell application is Command Prompt? (%windir%\system32\cmd.exe)?

image

Okay, Git Bash.

In the Git Bash (MINGW64) window, right-click on the title bar; this will bring up a pop-up menu.
Select Options... from the pop-up menu; this will show an Options dialog window.

In the Options dialog, select Text on the left, to show "Text and Font properties".
Select the desired Locale and perhaps also the desired Character set.

You can also try changing the font (if the selected font does not support Chinese characters).

@Afterlll did this resolve the issue?