LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: waterloo2005

我的openoffice双击无法打开中文名字的文件

[复制链接]
发表于 2009-3-2 23:55:36 | 显示全部楼层
哎,又是乱码问题

一、您要在英文UI下正常显示中文,必须条件
安装中文字体(wqy-*)
设置locale为utf8或其它支持中文的编码

二、在英文UI下,fcitx中文输入可以正常动作
不要更改fcitx配置文件的编码,默认是gb2312,为什么不是utf8?问作者去吧!


我的 .bashrc 和 locale 设置:
  1. cat .bashrc
  2. # work with X
  3. LANG=en_US.UTF-8
  4. LC_CTYPE=zh_CN.UTF-8
  5. LC_COLLATE=zh_CN.UTF-8
  6. KDE_LANG=en_US
  7. alias ad="sudo sh /home/share/code/shell/config-network-in-zj.sh "
  8. alias sad="sudo pppoe-stop "
  9. alias c="clear "
  10. alias cscope="EDITOR=vim cscope "
  11. alias d="sudo emerge -C "
  12. alias e="sudo emerge -av "
  13. alias g="grep ./* -r -n -e "
  14. alias h="history "
  15. alias lamp="cd; ./lamp.sh "
  16. alias l='ls --color=none'
  17. alias m="make "
  18. alias n="sudo pppoe-start "
  19. alias r="rm -i "
  20. alias s=" sudo "
  21. alias u="sudo emerge --sync "
  22. alias utag="java -jar /home/share/dol/id3iconv-0.2.1.jar -e gbk "
  23. alias z="zhcon --utf8 "
  24. export PATH=$PATH:/home/lee/bin/:/usr/libexec/git-core
  25. echo >> /tmp/t.txt
  26. EDITOR=/usr/bin/emacs
  27. alias cman='man -M /usr/share/man/zh_CN.UTF-8/ '
  28. alias ugroff='groff-utf8 -Tutf8 -man '
复制代码

我的UI默认是英文,但是可以显示中文和输入中文
回复 支持 反对

使用道具 举报

发表于 2009-3-2 23:59:17 | 显示全部楼层
如果您懒得作任何设置,您可以直接使用我写的脚本
http://www.shuge.org/project/enjoy_gentoo/l_config_locale.sh
  1. sudo l_config_locale.sh -e
复制代码
全局英文UI + 中文显示 + 中文输入
回复 支持 反对

使用道具 举报

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

本版积分规则

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