环境windows 11+doom emacs
之前为了避免乱码问题,我在config.el中设置了utf-8之类的参数
设置了 magit-git-output-coding-system
(when (fboundp 'set-charset-priority) (set-charset-priority 'unicode))
(setq magit-git-output-coding-system 'utf-8-unix)
(if (eq system-type 'windows-nt)
(progn
(set-clipboard-coding-system 'utf-16-le)
(set-selection-coding-system 'utf-16-le))
(set-selection-coding-system 'utf-8))
(prefer-coding-system 'utf-8-unix)
(set-language-environment "UTF-8")
(set-default-coding-systems 'utf-8-unix)
(set-terminal-coding-system 'utf-8-unix)
(set-keyboard-coding-system 'utf-8-unix)
但是打开magit之后还是这个样子
此时使用revert-buffer-with-coding-system设置 选择utf-8-unix之后,内容就正常了.
请问大家有遇到吗?这个是什么原因?应当如何解决? 目前没搜到什么有用的信息. 非常感谢