I 've been worried about how to display UTF-8 characters on Windows terminals. For example, in the MySQL command line, if the database encoding is UTF-8, then, when querying the database, the Chinese inside will become garbled. Today, I searched for it unintentionally and found that the solution is very simple: 1. Modify the terminal code page. Enter: chcp 650012 in the terminal. right-click the terminal on the taskbar (or click the icon in the upper-left corner of the window), select Properties From the shortcut menu, and select a font, such as Lucida Console. Do not select a dot matrix font "; after confirming, test the UTF-8 output again, what you see. :) Switching back to the original mode is also easy: just change the font of chcp 936 to the original dot matrix font. Note: After the code page is modified, if you use Cygwin, you will find that the ls-show-control-chars command of cygwin encounters an error in the Chinese directory name. This article is from Venj's Wikipedia