aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-http.el
diff options
context:
space:
mode:
authoralexjgriffith <griffitaj @gmail.com>2017-05-05 13:26:53 -0400
committerJohnson Denen <johnson.denen@gmail.com>2017-05-05 14:59:40 -0400
commita5005a12a912c97ec31d8ace6f7fc9f31151e7a6 (patch)
tree820b40cc6045f3d2f52a5f50551ed1ef7e93f548 /lisp/mastodon-http.el
parent73c15a03a9d7f799f7ab1557d3528fff916df265 (diff)
Moved decode-coding-string out of tl functions
Diffstat (limited to 'lisp/mastodon-http.el')
-rw-r--r--lisp/mastodon-http.el5
1 files changed, 4 insertions, 1 deletions
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))