转载自https://blog.csdn.net/liumf2005/article/details/6400576
查看当前buffer的编码:M-x describe-coding-system
按C-x <RET> r <TAB> 列出所有编码
以指定编码重读当前buffer:C-x <RET> r utf-8,(revert-buffer-with-coding-system)
改变当前buffer的编码:C-x <RET> f uft-8,(set-buffer-file-coding-system)
;; (set-keyboard-coding-system 'utf-8)
;; (set-clipboard-coding-system 'utf-8)
;; (set-terminal-coding-system 'utf-8)
;; (set-buffer-file-coding-system 'utf-8)
;; (set-selection-coding-system 'utf-8)
;; (modify-coding-system-alist 'process "*" 'utf-8)
;; (setq default-process-coding-system '(utf-8 . utf-8))
;; (setq-default pathname-coding-system 'utf-8)
---------------------
作者:liumf2005
来源:CSDN
原文:https://blog.csdn.net/liumf2005/article/details/6400576
版权声明:本文为博主原创文章,转载请附上博文链接!