From ce9efe43a4915bedb3b6ddd93034d32eae89c7c7 Mon Sep 17 00:00:00 2001 From: djcb Date: Mon, 2 Apr 2012 19:59:16 +0300 Subject: [PATCH] * mu4e-send.el: set default encoding to utf-8 --- emacs/mu4e-send.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/emacs/mu4e-send.el b/emacs/mu4e-send.el index c7202dfb..e37c48da 100644 --- a/emacs/mu4e-send.el +++ b/emacs/mu4e-send.el @@ -312,6 +312,13 @@ use the new docid. Returns the full path to the new message." (make-local-variable 'before-save-hook) (make-local-variable 'after-save-hook) + (make-local-variable 'message-default-charset) + + ;; if the default charset is not set, use UTF-8 + (unless message-default-charset + (setq message-default-charset 'utf-8)) + + ;; hack-hack-hack... just before saving, we remove the ;; mail-header-separator; just after saving we restore it; thus, the ;; separator should never appear on disk