MongoDB DOS window displays Chinese

Source: Internet
Author: User
http://zhidao.baidu.com/question/157276582 because the character encoding of the MongoDB background is utf-8, and the character encoding used by the Chinese Windows CMD window is GBK (Properties-"Options-" current code page), So when you use the MONGO command in CMD to query the data and display it, the Chinese will become garbled.

Use the following method to modify the cmd window encoding is UTF8 as follows, the Chinese will appear normal when querying again, but still cannot perform the Chinese insert operation, you can use the Mongovue tool to perform the Chinese insert operation:
(1) Chcp 65001
(2) Select the font in "Properties", except for "Dot Matrix font".

Redo modifying the default properties of the CMD window
Restores the current window's color to default with a color command without parameters.
Deleting a registry key Hkey_current_user\console\%systemroot%_system32_cmd.exe the properties of the window that is opened after the restore is default.

MongoDB DOS window displays Chinese

Related Article

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.