From d6868e1602d5690cae598c188be63b1916beb21d Mon Sep 17 00:00:00 2001 From: David Maus Date: Fri, 13 Aug 2010 20:59:19 +0000 Subject: [PATCH] Decode entry according to its character encoding * org-feed.el (org-feed-format-entry): Decode entry according to its character encoding. Feed entries may contain raw unicode characters that must be converted to utf-8 before they can be properly inserted in the target buffer. --- lisp/org-feed.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org-feed.el b/lisp/org-feed.el index f50678b41..0bab6390d 100644 --- a/lisp/org-feed.el +++ b/lisp/org-feed.el @@ -542,7 +542,8 @@ If that property is already present, nothing changes." (setq tmp (org-feed-make-indented-block tmp (org-get-indentation)))))) (replace-match tmp t t)))) - (buffer-string))))) + (decode-coding-string + (buffer-string) (detect-coding-region (point-min) (point-max) t)))))) (defun org-feed-make-indented-block (s n) "Add indentation of N spaces to a multiline string S."