LinuxSir.cn,穿越时空的Linuxsir!

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

Sad, can't input chinese~~~~~~~~~~~~~~~~~~~~

[复制链接]
发表于 2005-9-17 17:29:35 | 显示全部楼层 |阅读模式
I can see fcitx logo, but I can't activate it!
my os is ubuntu 5.10

then i do things like this,

$sudo apt-get install fcitx
$sudo sh -c " echo 'export XMODIFIERS=@im=fcitx ; export GTK_IM_MODULE="fcitx" ; fcitx ' > /etc/X11/Xsession.d/95xinput "
$sudo chmod +755 /etc/X11/Xsession.d/95xinput

my locale:
LANG=en_US.UTF-8
LC_CTYPE=zh_CN.GB2312
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=

You know LC_CTYPE=zh_CN.GB2312 makes me show chinese correctly in gftp, lftp etc.
I set LC_CTYPE=zh_CN.GB2312 in /etc/environment
environment is as follow:
LANGUAGE="en"
LC_CTYPE="zh_CN.GB2312"
GST_ID3_TAG_ENCODING=GB2312
LANG=en_US.UTF-8

I tried a lot of ways to solve this problem, but all of them didn't work

Anybody can help me?
发表于 2005-9-17 22:45:08 | 显示全部楼层
你怎么设置的 locale ?
整个 乱来.........


1.
请在 /etc/X11/Xsession.d/95xinput 去掉  export GTK_IM_MODULE="fcitx"

只保留 export XMODIFIERS=@im=fcitx ; fcitx




2.
请删掉你 /etc/environment 里的  zh_CN.GB2312  之类的
只保留
LANGUAGE="zh_CN:zh:en_US:en"
LANG=zh_CN.UTF-8


GST_ID3_TAG_ENCODING=GBK





3.
请执行  sudo  /usr/sbin/dpkg-reconfigure   locales
选 zh_CN.UTF-8




4.
关于 lftp  和 vim
请编辑 ~/.lftp/rc
写入
debug 3
set ftp:charset GBK
set file:charset UTF-8
set ftp:passive-mode no
alias nosetcharset " set ftp:charset ; set file:charset "



请编辑 ~/.vimrc
写入
set fileencodings=ucs-bom,utf-8,cp936,big5,euc-jp,euc-kr,latin1





其它不要乱来
回复 支持 反对

使用道具 举报

发表于 2005-9-17 22:48:20 | 显示全部楼层
然后重启 , 再登陆
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-17 23:42:28 | 显示全部楼层
I tried it, but it didn't work
fcitx can be activated, but when i input any key,  then fcitx crushed
i don't know why.

below is /etc/environment
LANGUAGE="zh_CN:zh:en_US:en"
LANG=zh_CN.UTF-8
GST_ID3_TAG_ENCODING=GBK

my 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=

/etc/X11/Xsession.d/95xinput:
export XMODIFIERS=@im=fcitx ; fcitx

sudo dpkg-reconfigure locales
zh_CN.UTF-8 is chosed and set as default locale
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-18 09:18:57 | 显示全部楼层
自己搞定
删除fcitx,然后重装,呵呵
$sudo apt-get remove fcitx
$sudo rm -rf ~/.fcitx

然后
$sudo apt-get install fcitx
$sudo sh -c " echo 'export XMODIFIERS=@im=fcitx ; export GTK_IM_MODULE="fcitx" ; fcitx ' > /etc/X11/Xsession.d/95xinput "
$sudo chmod +755 /etc/X11/Xsession.d/95xinput
回复 支持 反对

使用道具 举报

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

本版积分规则

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