When I want to send an email I composed in Emacs, I press C-c C-c
and am always presented with such an error message:
These default coding systems were tried to encode text
in the buffer `2015-02-03_19:08:30_1':
(utf-8-unix (302 . 4194243) (303 . 4194208) (305 . 4194243) (306 .
4194217) (308 . 4194243) (309 . 4194221) (311 . 4194243) (312 .
4194227))
However, each of them encountered characters it couldn't encode:
utf-8-unix cannot encode these:
Click on a character (or switch to this window by `M-o'
and select the characters by RET) to jump to the place it appears,
where `C-u M-x what-cursor-position' will give information about it.
[...]
At this point I can manually select an encoding and my email is sent. What I don't understand is that I always select utf-8
as the encoding when I receive this message and it just works! But the message said that utf-8-unix
can't encode some characters.
Can somebody tell me why Emacs can't select utf-8
by default and what this error message mean in this context?
EDIT 2015/02/05
I'm using mu4e
and I tried (setq-default buffer-file-coding-system 'utf-8)
without success (after evaluating this expression, if I start writing a new email, the variable's value is not 'utf-8
but 'utf-8-unix
).
EDIT 2015/02/06
I also tried M-x set-keyboard-coding-system utf-8
and (setq mm-coding-system-priorities '(utf-8))
but this had no visible effect.
EDIT 2015/02/21
I've just noticed this problem only happens if smtpmail-queue-mail
is t
. So I guess the problem is in the email queueing feature.
utf-8
in all buffers help?(setq-default buffer-file-coding-system 'utf-8)
mu4e
.(set-keyboard-coding-system 'utf-8)
help?