I'm trying to paste accented characters (eg: á, é, í) into Emacs but here's what I get:
When I paste into some other editor, like Vim, it works fine. I already tried putting this in my init.el
(setq utf-translate-cjk-mode nil)
(set-language-environment 'utf-8)
(set-keyboard-coding-system 'utf-8-unix)
(setq locale-coding-system 'utf-8)
(set-default-coding-systems 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-selection-coding-system 'utf-8)
(prefer-coding-system 'utf-8)
(set-clipboard-coding-system 'utf-8)
(setq x-select-request-type '(UTF8_STRING COMPOUND_TEXT TEXT STRING))
but didn't seem to help. Any ideas?
EDIT: Forgot to mention, my OS is Arch Linux and the system encoding is also UTF-8.
EDIT2: Firstly I thought this was an encoding problem, but I found it's actually related to evil-mode
. This only happens when I'm using "+p
of evil