Using Emacs on the Corpus server with Chinese characters

Connecting to Corpus with PuTTY (and WinAXE), you need to set

Window->Translation to UTF-8 and check the box Treat CJK ambiguous characters as wide.

Your .emacs file should contain the following to be able to view Chinese characters:

(set-language-environment "Chinese-GB")

(set-keyboard-coding-system 'utf-8)

(set-terminal-coding-system 'utf-8)

(set-buffer-file-coding-system 'utf-8)

(setq default-buffer-file-coding-system 'utf-8)

(set-default-coding-systems 'utf-8)

Now when you start Emacs, you can open files containing simplified Chinese characters and they should be visible normally. You can also check which character set work by trying M-x view-hello-file .

You can use Emacs inbuilt input methods to input Chinese characters.

M-x set-input-method

choosing chinese-py-punct you get an input method for inputting simplified Chinese one character at a time. (Which is in general not useful for writing anything more than a few characters)

After writing a few characters in Chinese, you can save the file and try to open it again. Should work.


At least two big problems exist:

Problem: The Windows Chinese IME don't work. Seems to be that Emacs rejects the input for unknown reasons. Maybe using some other editor might help?

Problem: Big5 characters (that is Taiwanese Mandarin and Cantonese mostly) don't work for some reason. Changing the language environment might help, but using the UTF-8 environment didn't seem to do the trick.

-- JuhoTupakka - 2008-12-29

Topic revision: r1 - 2008-12-29 - JuhoTupakka
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback