From b98ee731f32a0c79a314c2f87db679df9170317a Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Tue, 6 Oct 2020 14:44:17 +0100 Subject: Add encoding when saving buffer --- zettelkasten.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zettelkasten.el b/zettelkasten.el index 32b6130..9338540 100644 --- a/zettelkasten.el +++ b/zettelkasten.el @@ -217,6 +217,7 @@ If PARENT is nil, it will not add a link from a PARENT." (filename (zettelkasten--make-filename note))) (with-temp-buffer (set-visited-file-name filename) + (set-buffer-file-coding-system 'utf-8) (insert (concat "#+TITLE: " title (format-time-string "\n#+DATE: %c\n#+TAGS:\n\n"))) (save-buffer)) @@ -329,6 +330,7 @@ If PARENT is nil, it will not add a link from a PARENT." "\n") (with-temp-buffer (set-visited-file-name (concat tag ".org")) + (set-buffer-file-coding-system 'utf-8) (insert (concat "#+TITLE: " tag "\n\n" (apply 'concat -- cgit