From deebbf0f032d4649f78206d5d8ef570afb065579 Mon Sep 17 00:00:00 2001 From: Artur Malabarba Date: Sat, 29 Nov 2014 22:52:59 +0000 Subject: Fix #57. Set the buffer as unibyte then multibyte again. --- sx-question-print.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sx-question-print.el') diff --git a/sx-question-print.el b/sx-question-print.el index 0959f36..9245331 100644 --- a/sx-question-print.el +++ b/sx-question-print.el @@ -195,6 +195,10 @@ QUESTION must be a data structure returned by `json-read'." (sx-question-mode--print-section question) (sx-assoc-let question (mapc #'sx-question-mode--print-section .answers)) + ;; Display weird chars correctly + (set-buffer-multibyte nil) + (set-buffer-multibyte t) + ;; Go up (goto-char (point-min)) (sx-question-mode-next-section)) -- cgit v1.2.3