From 6b2df70c745ebcfc68ee351e93102641cde68640 Mon Sep 17 00:00:00 2001 From: Chunyang Xu Date: Wed, 11 Mar 2015 01:28:54 +0800 Subject: [PATCH] Set utf-8 to response string, fix #1 --- helm-github-stars.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/helm-github-stars.el b/helm-github-stars.el index 7681d7d..1ef5e2e 100644 --- a/helm-github-stars.el +++ b/helm-github-stars.el @@ -170,7 +170,9 @@ (and (re-search-forward "\\[" (point-max) t) (match-beginning 0))))) (and start - (buffer-substring start (point-max)))))) + (decode-coding-string + (buffer-substring-no-properties start (point-max)) + 'utf-8))))) (defun hgs/parse-github-response (response) "Parse Github API RESPONSE to get repositories full name."