LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1122|回复: 12

关于mrxvt 显示中文的问题 .

[复制链接]
发表于 2005-2-19 03:27:56 | 显示全部楼层 |阅读模式
系统用的是utf8 . mrvxt 主站FAQ如下. 但我照做之后还是一样的乱码. ..请问这要如何解决..?? 谢谢.


Q:  I use UTF-8 as default encoding method, but mrxvt does not
        support it. So can I start mrxvt with other encoding method, e.g.,
        zh_CN.GB2312 without changing the default encoding method?

        A:  No problem! You can start mrxvt like the following if you use
        bash/ksh/sh:

                LC_CTYPE=zh_CN.GB2312 mrxvt &

        If you use csh, try the following

                env LC_CTYPE=zh_CN.GB2312 mrxvt &
发表于 2005-2-19 07:04:37 | 显示全部楼层
I remember the mrxvt FAQ also mention that you need to compile mrxvt with Chinese support (not UTF-8) to enable it to display Chinese characters, have you done so?

[QUOTE=]
Q:  When I want to use Chinese (or Korea/Japanese) encoding and
        font, executing command `mrxvt -km gb -mfont fontname' is not
        working! For example, it complains that -km is a bad option.

A:  Most probably, you have not enabled gb/big5/kanji/korea options
        when you configure the mrxvt. These options are turned off by
        default. Reconfigure mrxvt to enable these options and rebuild it
        like the following:

                $ ./configure --enable-gb --enable-whatever-other-options
                $ make
                $ su
                # make install[/QUOTE]
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-19 12:51:53 | 显示全部楼层
我用的是Gentoo . 在USE中设置了对  cjk nls 的支持..
回复 支持 反对

使用道具 举报

发表于 2005-2-19 18:51:37 | 显示全部楼层
I think the USE environment cannot invoke the --enable-gb option.  They are not equivalent.  Well, the total time for mrxvt compilation is only few minutes, why not give it a shot?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-19 19:21:34 | 显示全部楼层
look .. 这个是 mrxvt-0.3.12.ebuild 里的...如此看来应该没有问题啊..

if use linguas_zh_CN ; then
        # --with-encoding=gbk
        myconf="${myconf} --enable-gb --with-encoding=gb"

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-20 16:05:37 | 显示全部楼层
up..up..
回复 支持 反对

使用道具 举报

发表于 2005-2-20 19:18:22 | 显示全部楼层
编译时加了这两个选项么:
  1. --enable-cjk --with-encoding=gbk
复制代码

我编译时的全部选项为:

  1. --enable-keepscrolling --enable-mousewheel --enable-rxvt-scroll --enable-next-scroll --enable-p
  2. lain-scroll --enable-half-shadow --enable-linespace --enable-pointer-blank --enable-transparenc
  3. y --enable-fading --enable-xft --enable-xim --enable-cjk --enable-backspace-key --enable-delete
  4. -key --with-encoding=gbk --disable-cursor-blink
复制代码


PS:我的locale为zh_CN.GBK,系统为Magic Linux 1.2 Beta3
回复 支持 反对

使用道具 举报

发表于 2005-2-21 19:01:01 | 显示全部楼层
[root@mikkoyue:mrxvt-0.3.13]# mrxvt
mrxvt: can't load font "-xtm-songti-medium-r-normal--14-140-75-75-c-140-gbk-0"
mrxvt: can't load font "-*-*-*-*-*-*-*-*-*-*-*-*-gbk-0"
mrxvt: fatal error, aborting...
[root@mikkoyue:mrxvt-0.3.13]#
回复 支持 反对

使用道具 举报

发表于 2005-3-17 10:22:21 | 显示全部楼层
我的mrxvt的配置文件如下,怎么还是乱码
mrxvt*title:RXVT whith GB18030
LC_ALL=zh_CN
mrxvt*fm:Sans Serif
mrxvt*xftmfm:Sans Serif
mrxvt*fontName:Sans Serif
mrxvt*background:white
mrxvt*foreground:black
mrxvt*cursorColor:black
mrxvt*cursorColor2:red
mrxvt*xftmsz:14
mrxvt*multichar_encoding:GB2312
mrxvt*inputMethod:SCIM
~
~
~
~
回复 支持 反对

使用道具 举报

发表于 2005-3-17 10:26:39 | 显示全部楼层
补一句,redhat8.0 mrxvt0.4
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表