# HG changeset patch # User Oleksandr Gavenko # Date 1320920041 -7200 # Node ID 2a406d085196541a0cc5139586a7527b29f041cb # Parent 336ca735965840d5c4a33f7be0181c264a998c86 Set coding system for blog storage to utf-8. diff -r 336ca7359658 -r 2a406d085196 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)))