Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows平台需要修改3行, 否则乱码 #4

Closed
sfengyuan opened this issue Jun 22, 2018 · 2 comments
Closed

Windows平台需要修改3行, 否则乱码 #4

sfengyuan opened this issue Jun 22, 2018 · 2 comments

Comments

@sfengyuan
Copy link

sfengyuan commented Jun 22, 2018

(when (eq system-type 'windows-nt)
(set-next-selection-coding-system 'utf-16-le)
(set-selection-coding-system 'utf-16-le)
(set-clipboard-coding-system 'utf-16-le))

@sfengyuan sfengyuan changed the title Windows平台请不要添加这3行, 否则乱码 Windows平台需要修改3行, 否则乱码 Jun 22, 2018
@hick
Copy link
Owner

hick commented Feb 1, 2019

多谢, 你这段我也加进去供大家参考

有具体的 windows 版本和 Emacs 版本信息没? 我的设置里没这几行不乱码, 虽然不太理解, 估计跟其他相关设置有点关系. 我的 win7 + eGNU Emacs 24.4.1 (i686-pc-mingw32) of 2014-10-25 on LEG570 只设置了 utf-8 就可以了, 注释部分可以忽略:

image

@hick
Copy link
Owner

hick commented Feb 1, 2019

已经更新

@hick hick closed this as completed Feb 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants