Re: 在终端窗口中,为何总是乱码?
On Thu, 24 Oct 2002 09:02:16 +0800 (CST)
"冷罡华" <kanaka@yeah.net> wrote:
> 我用的终端都是这样,都不能正常显示gb2312的汉字。
> konsole,rxvt,mlterm,gnome-terminal,都不能正常显示。
>
> 我在启动gnome-terminal的时候,他提示:
>
> Gdk-WARNING **: Missing charsets in FontSet creation
>
> Gdk-WARNING **: GB2312.1980-0
>
> Gdk-WARNING **: Missing charsets in FontSet creation
>
> Gdk-WARNING **: GB2312.1980-0
>
> 然后才给我打开terminal窗口。
>
可能你自己需要设置gnome-terminal的字体,我不知道woody中gnome-terminal的版本,可能是1.4的吧?
在字体设置里面加上中文的字体应该就可以了的。
我现在用的是rxvt-ml,下面贴出我的/usr/bin/crxvt
-------------------------------cut----------------------------------
#!/bin/sh
#
# This is a wrapper script that tests the locale and executes the
# appropriate version of rxvt.
if [ "$LC_ALL" = "zh_TW.Big5" ]; then ext=big5
elif [ "$LC_ALL" = "zh_CN.GB2312" ]; then ext=gb
elif [ "$LC_CTYPE" = "zh_TW.Big5" ]; then ext=big5
elif [ "$LC_CTYPE" = "zh_CN.GB2312" ]; then ext=gb
elif [ "$LANG" = "zh_TW.Big5" ]; then ext=big5
elif [ "$LANG" = "zh_CN.GB2312" ]; then ext=gb
else ext=gb
fi
exec /usr/bin/crxvt-"$ext" -bg black -fg gray -sr \
-fn "-b&h-lucidatypewriter-medium-r-normal-*-*-140-*-*-m-*-iso8859-1"\
-fm "-misc-fixed-medium-r-normal--*-*-*-*-*-*-gb2312.1980-0" -sl 1000 $@
-------------------------------cut end------------------------------
其中fm的字体你自己指定喜欢的中文字体,然后把xterm指向/usr/bin/crxvt就可以了。
> 是不是我的字体设的有问题?我用的是woody自己的fongsong ti,在cpanel里面也是设置的这个.
>
>
>
Reply to: