Linux encoding problems

Source: Internet
Author: User
Linux encoding error:/bin/sh: warning: setlocale: LG_ALL: cannotchangelocale (default) www.2cto.com the encoding information of the new character Library is located under the/usr/share/i18n directory, SUPPORTED contains available character sets ,... linux encoding error:/bin/sh: warning: setlocale: LG_ALL: cannot change locale (default) www.2cto.com the encoding information of the new character Library is located under the/usr/share/i18n directory, SUPPORTED contains available character sets in the following format :... zh_HK BIG5-HKSCSzh_SG.UTF-8 UTF-8zh_SG.GBK GBKzh_SG GB2312zh_TW.EUC-TW EUC-TWzh_TW.UTF-8 UTF-8... where The ing information of each character set stored in charmaps can be called the initial file (there may be terms, no matter how much ). Localedef can be used to generate character sets, that is, those in locales. However, these are not character sets that can be used in the system. The files in/usr/share/i18n described above can only be considered as available character sets. locale-m can see the list. Www.2cto.com because Linux contains dozens of character sets, most of which can be used by users, there is no need to integrate all character sets into the system. Only some character sets are used in the system. In addition, to make the system usable, the files in the original/usr/share/i18n must be processed (complile). the characters that can be used are encoded under/usr/lib/locale, become the complied character set. We recommend that you perform this setting: localedef-v-c-I en_US-f UTF-8 en_US.UTF-8 (remember to be case sensitive)
 

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.