From 29a4ae1c8385802bbcfe09e770df04c93adf8ae0 Mon Sep 17 00:00:00 2001 From: djcb Date: Sun, 31 Jan 2016 12:48:12 +0200 Subject: [PATCH] mu4e: explicitly specify utf8 for html-view actions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Explicitly add the (html 5) for UTF-8; not all browsers default to UTF-8 and could show the class "Â" characters when interpreting UTF-8 as ISO-8859-1. --- mu4e/mu4e-actions.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mu4e/mu4e-actions.el b/mu4e/mu4e-actions.el index df5df87e..dc5ee985 100644 --- a/mu4e/mu4e-actions.el +++ b/mu4e/mu4e-actions.el @@ -84,6 +84,7 @@ You can influence the browser to use with the variable (mu4e-error "No body part for this message")) (with-temp-buffer ;; simplistic -- but note that it's only an example... + (insert "\n") (insert (or html (concat "
" txt "
"))) (write-file tmpfile) (browse-url (concat "file://" tmpfile))))) @@ -104,6 +105,7 @@ You can influence the browser to use with the variable (mu4e-error "No body part for this message")) (with-temp-buffer ;; simplistic -- but note that it's only an example... + (insert "\n") (insert (or html (concat "
" txt "
"))) (write-file tmpfile) (xwidget-webkit-browse-url (concat "file://" tmpfile) t))))