Bläddra i källkod

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.
David Maus 14 år sedan
förälder
incheckning
d6868e1602
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      lisp/org-feed.el

+ 2 - 1
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."