From a529b20a81b350d99d57929434a3aaaf1d03be35 Mon Sep 17 00:00:00 2001 From: Alexey Shmalko Date: Mon, 19 Jul 2021 05:36:21 +0300 Subject: [PATCH] fix(#1575): fix display of non-ASCII in unlinked references section (#1616) Non-ASCII characters are displayed incorrectly because `org-roam-unlinked-references-preview-line` uses `insert-file-contents-literally` which ignores the encoding. Use `insert-file-contents` which does the right thing. fixes #1575 --- org-roam-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org-roam-mode.el b/org-roam-mode.el index a6abcd7..d482fae 100644 --- a/org-roam-mode.el +++ b/org-roam-mode.el @@ -410,7 +410,7 @@ If ROW, move to the row, and if COL move to the COL." "Return the preview line from FILE. This is the ROW within FILE." (with-temp-buffer - (insert-file-contents-literally file) + (insert-file-contents file) (forward-line (1- row)) (buffer-substring-no-properties (save-excursion