aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2014-11-30 00:07:38 -0500
committerSean Allred <code@seanallred.com>2014-11-30 00:07:38 -0500
commit570a41fbc7e7ff6f842d6bb809bc36c457784ebf (patch)
tree2703f2ddd7eeb325c092cd5a8c2f2f61dabededd
parent00a187f5bb7dc08117965eae05df51d0eedac90e (diff)
parentdeebbf0f032d4649f78206d5d8ef570afb065579 (diff)
Merge pull request #125 from vermiculus/issue-57-unibyte-vs-multibyte
Fix #57. Set the buffer as unibyte then multibyte again.
-rw-r--r--sx-question-print.el4
1 files changed, 4 insertions, 0 deletions
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))