help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OSX terminal, system-wide Chinese input methods


From: Peter Dyballa
Subject: Re: OSX terminal, system-wide Chinese input methods
Date: Fri, 21 Nov 2008 11:15:11 +0100


Am 21.11.2008 um 05:37 schrieb Eric Abrahamsen:

(set-language-environment 'UTF-8)


It might be better not to use this statement but have in the shell from which you launch Carbon Emacs environment variables LANG and LC_CTYPE which are set to some Chinese UTF-8 value, zh_TW.UTF-8, zh_HK.UTF-8, zh_CN.UTF-8 – or can zh_CN.GB18030, zh_CN.GB2312, zh_CN.GBK be more appropriate?

Set-language-environment has many side-effects. If you're not content with the new setup, you can use statements like

        (prefer-coding-system 'utf-8-unix)
        (prefer-coding-system 'utf-8)
        (prefer-coding-system 'utf-8m)

etc. to help Emacs do the right thing.

--
Greetings

  Pete

Computers are good at following instructions, but not at reading your mind.
        - D. E. Knuth, The TeXbook, Addison-Wesley 1984, 1986, 1996, p. 9







reply via email to

[Prev in Thread] Current Thread [Next in Thread]