Permalink
Browse files

Decode file contents from UTF-8

  • Loading branch information...
1 parent d949945 commit fdab4a59ab912817650eede0c939158cac363413 @cefstat committed with rudi May 20, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 simplenote.el
View
4 simplenote.el
@@ -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

0 comments on commit fdab4a5

Please sign in to comment.