Skip to content

Commit

Permalink
Merge pull request #4 from xuchunyang/issue-1-fix-encoding
Browse files Browse the repository at this point in the history
Set utf-8 to response string, fix #1
  • Loading branch information
Sliim committed Mar 10, 2015
2 parents c0b82b4 + 6b2df70 commit 8c141ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion helm-github-stars.el
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 8c141ae

Please sign in to comment.