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.