what I have done For ubuntu 8.04:
1 .system->administration->language support: chinese
2.install fonts: here and hear for install new fonts,
I have ONLY do these steps:
- copy the font from a windows system to /usr/share/fonts/zh_CN/
- sudo mkfontscale
sudo mkfontdir
sudo fc-cache
首先
代碼: |
sudo locale-gen zh_CN.UTF-8 |
and I have done something extra:
sudo locale-gen zh_CN.GBK
然後打開/etc/environment,加入一行:
代碼: |
LC_CTYPE=zh_CN.UTF-8 |
then the fonts are installed properly
4. sudo apt-get install fcitx
5. im-switch -s fcitx
now fcitx could be invoked, but the interface of fcitx in weired charecters(亂碼)
6. fix the problem, according to 解決 fcitx 狀態條中漢字顯示爲方框
change the second line of ~/.fctix to :
ÏÔÊŸ×ÖÌå(ÖÐ)=stsong
ÏÔÊŸ×ÖÌå(Ó¢)=Courier New
7. locale in theory:
關於locale的設定,爲什麼要設定locale
將 locale 從 zh_CN.GB2312 轉到 zh_CN.UTF-8 的一些問題和解決方法
command:
iconv - Convert encoding of given files from one encoding to another
im-switch
CSDN blog 沒有tag功能了?