Emacs: current buffer's coding system

Viewed 2240

I have used to pc for developing erlang program, one is mac os x 10.6, the other is mac os x 10.7.

In ".emacs" file of both pc, it contain the following script

;;handle emacs utf-8 input
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(prefer-coding-system 'utf-8)

But when I input remark including Chinese characters in one pc and saved, and download to the other pc. The chinese characters can't be shown correctly. The same story for reverse operation.

I want to know how to check the current file's encoding type? Is there any command can do that?

3 Answers
Related