[分享]7.04 server 版 中文显示问题

系统字体配置、中文显示和输入法问题
回复
liyu212
帖子: 17
注册时间: 2007-07-19 14:35
送出感谢: 0
接收感谢: 0

[分享]7.04 server 版 中文显示问题

#1

帖子 liyu212 » 2007-07-21 17:32

首先telnet到服务器
服务器的locale设置为
locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
显示中文时
系统显示
/usr/share/man/zh_CN/man1/ls.1:317: warning: can't find numbered character 143
/usr/share/man/zh_CN/man1/ls.1:317: warning: can't find numbered character 131
/usr/share/man/zh_CN/man1/ls.1:317: warning: can't find numbered character 149
/usr/share/man/zh_CN/man1/ls.1:317: warning: can't find numbered character 156
/usr/share/man/zh_CN/man1/ls.1:317: warning: can't find numbered character 141
/usr/share/man/zh_CN/man1/ls.1:317: warning: can't find numbered character 144
/usr/share/man/zh_CN/man1/ls.1:317: warning: can't find numbered character 140
/usr/share/man/zh_CN/man1/ls.1:317: warning: can't find numbered character 160
/usr/share/man/zh_CN/man1/ls.1:317: warning: can't find numbered character 148
/usr/share/man/zh_CN/man1/ls.1:317: warning: can't find numbered character 153
/usr/share/man/zh_CN/man1/ls.1:317: warning: can't find numbered character 150
/usr/share/man/zh_CN/man1/ls.1:318: warning: can't find numbered character 160
/usr/share/man/zh_CN/man1/ls.1:318: warning: can't find numbered character 159
/usr/share/man/zh_CN/man1/ls.1:318: warning: can't find numbered character 131
/usr/share/man/zh_CN/man1/ls.1:318: warning: can't find numbered character 146
/usr/share/man/zh_CN/man1/ls.1:318: warning: can't find numbered character 140
/usr/share/man/zh_CN/man1/ls.1:318: warning: can't find numbered character 143
/usr/share/man/zh_CN/man1/ls.1:319: warning: can't find numbered character 156
/usr/share/man/zh_CN/man1/ls.1:319: warning: can't find numbered character 139
/usr/share/man/zh_CN/man1/ls.1:319: warning: can't find numbered character 143
/usr/share/man/zh_CN/man1/ls.1:319: warning: can't find numbered character 154
/usr/share/man/zh_CN/man1/ls.1:319: warning: can't find numbered character 148
/usr/share/man/zh_CN/man1/ls.1:319: warning: can't find numbered character 153
/usr/share/man/zh_CN/man1/ls.1:319: warning: can't find numbered character 145
/usr/share/man/zh_CN/man1/ls.1:323: warning: can't find numbered character 150
/usr/share/man/zh_CN/man1/ls.1:323: warning: can't find numbered character 139
/usr/share/man/zh_CN/man1/ls.1:323: warning: can't find numbered character 140
/usr/share/man/zh_CN/man1/ls.1:323: warning: can't find numbered character 146
/usr/share/man/zh_CN/man1/ls.1:327: warning: can't find numbered character 157
/usr/share/man/zh_CN/man1/ls.1:327: warning: can't find numbered character 139
/usr/share/man/zh_CN/man1/ls.1:327: warning: can't find numbered character 156
将系统的locale改为
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=

系统显示中文正常
man ls 的结果
LS(1) LS(1)

NAME
ls, dir, vdir - 列目录内容

提要
ls [选项] [文件名...]

POSIX 标准选项: [-CFRacdilqrtu1]

GNU 选项 (短格式):
[-1abcdfgiklmnopqrstuxABCDFGLNQRSUX"] [-w cols] [-T cols] [-I pattern] [--full-time] [--format={long,verbose,com‐
mas,across,vertical,single-column}] [--sort={none,time,size,extension}] [--time={atime,access,use,ctime,status}]
[--color[={none,auto,always}]] [--help] [--version] [--]

描述( DESCRIPTION )
程序ls先列出非目录的文件项,然后是每一个目录中的
可显示文件。如果没有选项之外的参数【译注:即
文件名部分为空】出现,缺省为 "." (当前目录)。选
项 -d 使得目录与非目录项同样对待。除非 -a
选项出现,文件名以.开始的文件不属可显示文
件。

以当前目录为准,每一组文件(包括非目录文件项,以及
每一内含文件的目录)分别按文件名比较顺序排序。如果
-l 选项存在,每组文件前显示一摘要行给出该
组文件长度之和(以 512 字节为单位)。

输出是到标准输出( stdout )。除非以 -C 选项要
求按多列输出,输出将是一行一个。然而,输出到终端时,
单列输出或多列输出是不确定的。可以分别用选项 -1
或 -C 来强制按单列或多列输出。

-C 多列输出,纵向排序。
回复

回到 “字体美化和中文支持”