Meditation Rock 4.2 Modification of the system character encoding

Source: Internet
Author: User

Working reason, use the Meditation 4.2 operating system. Install the system, the operator asked me the character encoding set what kind of, I think UTF-8 is an international code, casually said UTF-8 bar. The system in the unit is gb2312. In this way, the files generated on other systems, the local copy, the character encoding between the system are inconsistent, resulting in garbled characters. Here is a simple comb, the relationship between the character encoding it.

First of all, the most critical of course is the character encoding of the system itself, and then to the top, that is the code of the Shell terminal. Only the shell terminal code and the system itself is encoded in the same time, we see in the terminal in Chinese is not garbled. Then the system and the system between the code, only two systems with the same encoding, the file will not appear in the past in the case of Chinese garbled. And the terminal's character encoding is better set, directly open the terminal window--------code, select your system code. And the following is to say is the system encoding settings.

1, first use the LOCALE-A command to see the system support character encoding.

2. Use the locale command to view the current system character encoding.

3, modify the time, modify the character encoding settings in these files,/etc/profile or $home/.bash_profile, these two are for the user's character encoding, and then the two configuration files/etc/sysconfig/i18n and/etc/ Environment also modifies the same content. Last source, the modification was successful.

Note: This article refers to http://blog.csdn.net/bianzhuang09/article/details/6553911, after the successful operation, record the operation process.

Meditation Rock 4.2 Modification of the system character encoding

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.