In Unix/Linux, note the character set of the system.

Source: Internet
Author: User

When our testing service is deployed in Unix/Linux, pay attention to the default Character Set of the system, including Suse, Red Hat and other well-known operating systems, the default character set are UTF-8, this character set causes garbled characters in the system. If you findProgramThe case and directory are correct, but there are still garbled characters or functions inaccessible. Please pay attention to the character set.

The following uses suse9.0 as an example.

First, you can view the character set. On the SuSE command line interface, type "locale" to view the character set of the current system,

To modify the character set combination, edit the/etc/sysconfig/language file and change rc_lang = "To rc_lang =" zh_cn.gbk ". Then, run the suseconfig command in the command line to activate the change. After running, you must log out and log on again. When running locale, you can see that the character set of the current system is zh_cn.gbk.

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.