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.
This commit is contained in:
parent
7cbc7a67d4
commit
d6868e1602
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue