坑爹的windows:
(setq default-buffer-file-coding-system 'utf-8) (setq current-language-environment "UTF-8") (set-language-environment "UTF-8") (setq default-input-method "chinese-py") (unless (eq system-type 'windows-nt) (set-selection-coding-system 'utf-8)) (setq locale-coding-system 'utf-8) (set-default-coding-systems 'utf-8) (set-terminal-coding-system 'utf-8) (set-keyboard-coding-system 'utf-8) (set-w32-system-coding-system 'utf-8) (set-file-name-coding-system 'utf-8) (prefer-coding-system 'utf-8) ;; 支持从外部粘贴中文 ;; MS Windows clipboard is UTF-16LE (set-clipboard-coding-system 'utf-16le-dos)