(Emacs24.2, MacOSX10.8)
init.el
(defvar is-mac (or (eq window-system 'mac) (featurep 'ns))) (set-language-environment 'utf-8) (prefer-coding-system 'utf-8) (set-default-coding-systems 'utf-8-unix) (cond (is-mac (require 'ucs-normalize) (setq file-name-coding-system 'utf-8-hfs) (setq locale-coding-system 'utf-8-hfs) ) (t (setq file-name-coding-system 'utf-8) (setq locale-coding-system 'utf-8) ) )