Windows adb shell Chinese garbled problem Solution _android

Source: Internet
Author: User

window, after the ADB shell, for example, if your sdcard save the file name of Chinese characters, then in the cmd display is some irregular Chinese and mixed with garbled.

This situation occurs because:

Android uses the UTF-8 character, and the cmd default character set is ANSI, the Chinese environment is GBK, the code page is 936. The way to query the current code page is to enter the "CHCP" command directly under CMD and return the words "Active code page: 936". Find out why, and the solution will be there.

Just use the UTF-8 format code page 65001 to OK, the command is as follows: Chcp 65001

However, UTF-8 characters are still not displayed correctly in the window.

Modify the window properties, change the font right-click on the command line title bar, select "Properties"-> "Font", modify the font to True Type font "Lucida Console", and then click OK to apply the attribute to the current window.

The above does not completely solve the problem, because the displayed content may not be complete. You can minimize and then maximize the command Line window, and the contents of the file are displayed completely.

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.