Set coding system for blog storage to utf-8.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 10 Nov 2011 12:14:01 +0200
changeset 812 2a406d085196
parent 811 336ca7359658
child 813 cd42d50dcef0
Set coding system for blog storage to utf-8.
stmcrblog-mode.el
--- a/stmcrblog-mode.el	Thu Nov 10 11:40:58 2011 +0200
+++ b/stmcrblog-mode.el	Thu Nov 10 12:14:01 2011 +0200
@@ -47,7 +47,11 @@
 
 `stmcrblog-after-add-entry-hook' called after adding entries. You
 can use this hook to render and publish `stmcrblog-file'."
-  (let (pos)
+  (let (
+        (coding-system-for-read 'utf-8)
+        (coding-system-for-write 'utf-8)
+        pos
+        )
     (setq pos (string-match "\n" msg))
     (when pos
       (setq msg (substring msg 0 pos)))