Linux字符的查看及修改

操作任务:查看及修改 Linux字符

一、查看字符集:

[root@Linux ~]# echo $LANG

zh_CN.UTF-8

[root@Linux ~]# env|grep LANG

LANG=zh_CN.UTF-8

[root@Linux ~]# export|grep LANG

declare -x LANG="zh_CN.UTF-8"

[root@Linux ~]# locale

LANG=zh_CN.UTF-8

LC_CTYPE="zh_CN.UTF-8"

LC_NUMERIC="zh_CN.UTF-8"

LC_TIME="zh_CN.UTF-8"

LC_COLLATE="zh_CN.UTF-8"

LC_MONETARY="zh_CN.UTF-8"

LC_MESSAGES="zh_CN.UTF-8"

LC_PAPER="zh_CN.UTF-8"

LC_NAME="zh_CN.UTF-8"

LC_ADDRESS="zh_CN.UTF-8"

LC_TELEPHONE="zh_CN.UTF-8"

LC_MEASUREMENT="zh_CN.UTF-8"

LC_IDENTIFICATION="zh_CN.UTF-8"

LC_ALL=

二、修改字符集:如出现乱码,即通过下方式解决

[root@Linux ~]# export   LANG=zh_CN.UTF-8



上一篇:【算法】高精度算法(加减乘除)


下一篇:【NOI Online#2 提高组】子序列问题