Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have already

  1. installed Chinese fonts

    $ sudo apt-cache search chinese
    $ sudo apt-get install ttf-arphic-bkai00mp ttf-arphic-bsmi00lp ttf-arphic-gbsn00lp ttf-arphic-gbsn00lp ...
  2. added locales

    $ sudo dpkg-reconfigure locales, 

and chose the following

  • en_US.UTF-8 UTF-8
  • zh_CN GB2312
  • zh_CN.GBK GBK
  • zh_CN.UTF-8 UTF-8
  • zh_TW BIG5
  • zh_TW.UTF-8 UTF-8

However when I try to create a file with Chinese characters in file name by touch <some chinese characters ...>.txt, it fails and substituted Chinese characters with --------- at terminal.

How to fix this?

[Edit, Aug. 15, 2011, 21:42]

After rebooting, everything is working.

share|improve this question

closed as off topic by womble, TheCleaner, HopelessN00b, Ward, John Gardeniers Dec 5 '12 at 7:13

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

You need to tell your terminal to use the Chinese locale; I'm no multilingual expert, but if you've got a UTF-8 compatibile terminal, I would expect that adding the following to your .bashrc and logging out/in:

export LANG=zh_CN.UTF-8


export LANG=zh_TW.UTF-8

(depending on your particular preference) should do the trick.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.