"Reprint" displays UTF-8 characters in the Windows terminal

Source: Internet
Author: User
Has been plagued by the problem of how to display UTF-8 characters in a Windows terminal. For example, in the MySQL command line, if the database encoding is UTF-8, then, when querying the database, the Chinese will become garbled.
Today half-unintentional search, the results found that the solution is very simple:
1. Modify the terminal's code page.
In the terminal, enter:
Chcp 65001

2. Right click on the terminal on the taskbar (you can also click the icon in the upper left corner of the window), select Properties in the shortcut menu, select the font in it--such as Lucida Console, do not select "Dot Matrix Font";
After determining, test the UTF-8 output again and see what you have seen. :)
It's also easy to switch back to the original mode:
CHCP 936

It would be nice to change the font to the original dot matrix font.

"Reprint" displays UTF-8 characters in the Windows terminal

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.