Chinese characters in Aix are garbled and user environment variables are set to be abnormal.

Source: Internet
Author: User

After Weblogic is installed on the AIX machine, access the service and Chinese characters are garbled,

If you use the root user, you can

1. How to view the installed character set:
Locale-
2. view the current language environment:
Env | grep Lang
3. If you want to change the English environment to Chinese
Change lang = en_us in VI/etc/environment to zh_ch (for more information, see zh_cn.gb18030)
We are new users and do not allow the use of global character sets. Therefore, if the user name is AAA

Under the $/home/AAA directory, find the. profile file. If no new one is created, add
LANG=Zh_CN.GB18030LC_COLLATE="Zh_CN.GB18030"LC_CTYPE="Zh_CN.GB18030"LC_MONETARY="Zh_CN.GB18030"LC_NUMERIC="Zh_CN.GB18030"LC_TIME="Zh_CN.GB18030"LC_MESSAGES="Zh_CN.GB18030"LC_ALL=export LANG

The content of my. profile file is as follows:

PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:/usr/java6_64/jre/bin:/usr/java6_64/binLANG=Zh_CN.GB18030LC_COLLATE="Zh_CN.GB18030"LC_CTYPE="Zh_CN.GB18030"LC_MONETARY="Zh_CN.GB18030"LC_NUMERIC="Zh_CN.GB18030"LC_TIME="Zh_CN.GB18030"LC_MESSAGES="Zh_CN.GB18030"LC_ALL=export LANGif [ -s "$MAIL" ]           # This is at Shell startup.  In normalthen echo "$MAILMSG"        # operation, the Shell checksfi                          # periodically.

If the characters identified by the locale command are
LANG=Zh_CN.GB18030LC_COLLATE="C"LC_CTYPE="C"LC_MONETARY="C"LC_NUMERIC="C"LC_TIME="C"LC_MESSAGES="C"LC_ALL=

Check whether ^ m exists in the. profile file. If this separator is input in binary mode, the parsing environment variable is abnormal. Use VI to edit it directly.

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.