"Run Configurations" in the menu bar; then select Common on the right tab page; finally select "Other" for Encoding ->UTF8" is enough."/> "Run Configurations" in the menu bar; then select Common on the right tab page; finally select "Other" for Encoding ->UTF8" is enough.">
Home >Backend Development >Golang >How to solve the problem of Chinese garbled output in Go language
Solution to the Chinese garbled output in Go language: first compile a Go program whose output message contains Chinese; then click "Run" -> "Run Configurations" in the menu bar; then select Common on the right Tab page ;Finally, select "Other->UTF8" for Encoding.
The operating environment of this tutorial: Windows 10 system, Go1.11.2&&Eclipse IDE 2020-06 R version, Dell G3 computer.
Recommended tutorial: "go language"
Solution to the problem of Chinese garbled output in the Go language eclipse console:
Compile a Go program whose output message contains Chinese, click the Run button, and the console outputs garbled information, as shown below.
Click on the menu bar "Run"-> "Run Configurations".
Find the previous program and click to select it.
Select Common on the right Tab page.
Encoding select Other->UTF8.
Click Apply and Run, and the program output will display Chinese normally.
The above is the detailed content of How to solve the problem of Chinese garbled output in Go language. For more information, please follow other related articles on the PHP Chinese website!