From a5005a12a912c97ec31d8ace6f7fc9f31151e7a6 Mon Sep 17 00:00:00 2001 From: alexjgriffith Date: Fri, 5 May 2017 13:26:53 -0400 Subject: Moved decode-coding-string out of tl functions --- lisp/mastodon-http.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lisp/mastodon-http.el') diff --git a/lisp/mastodon-http.el b/lisp/mastodon-http.el index d3facc4..2b3f7dc 100644 --- a/lisp/mastodon-http.el +++ b/lisp/mastodon-http.el @@ -104,7 +104,10 @@ Pass response buffer to CALLBACK function." (with-current-buffer (mastodon-http--get url) (goto-char (point-min)) (re-search-forward "^$" nil 'move) - (let ((json-string (buffer-substring-no-properties (point) (point-max)))) + (let ((json-string + (decode-coding-string + (buffer-substring-no-properties (point) (point-max)) + 'utf-8))) (json-read-from-string json-string))))) json-vector)) -- cgit v1.2.3