简体   繁体   中英

Copy & paste non-ASCII characters to an Emacs window from another window doesn't work correctly

I work with emacs23 with the iso-8859-1 coding system. I have these lines in my .emacs file:

(setq default-buffer-file-coding-system 'iso-8859-1)

(set-selection-coding-system 'iso-8859-1)

However, if I try to copy a non-ASCII character from another window and paste it to my emacs window, it doesn't work correctly. For instance, if I try to copy and paste "ì" I get "ì". How can I fix it?

正如Karol S所建议的,似乎最好的方法是将emacs切换为UTF-8。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM