Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Decode file contents from UTF-8

  • Loading branch information...
commit fdab4a59ab912817650eede0c939158cac363413 1 parent d949945
Konstantinos Efstathiou authored rudi committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 simplenote.el
4 simplenote.el
View
@@ -533,7 +533,7 @@ setting."
(defun simplenote-new-note-widget (file)
(let* ((modify (nth 5 (file-attributes file)))
(modify-string (format-time-string "%Y-%m-%d %H:%M:%S" modify))
- (note (simplenote-file-contents file))
+ (note (decode-coding-string (simplenote-file-contents file) 'utf-8 t))
(headline (simplenote-note-headline note))
(shorttext (simplenote-note-headrest note)))
(widget-create 'link
@@ -572,7 +572,7 @@ setting."
(key (file-name-nondirectory file))
(modify (nth 5 (file-attributes file)))
(modify-string (format-time-string "%Y-%m-%d %H:%M:%S" modify))
- (note (simplenote-file-contents file))
+ (note (decode-coding-string (simplenote-file-contents file) 'utf-8 t))
(headline (simplenote-note-headline note))
(shorttext (simplenote-note-headrest note)))
(widget-create 'link
Please sign in to comment.
Something went wrong with that request. Please try again.