about support mutlibyte character #11

luozengbin opened this Issue Jul 22, 2012 · 1 comment


None yet

2 participants


when the contents or description of the gist contains multi-byte character the response buffer will got unreadable character.
The following code seems to solve this problem for me.

(defun gh-api-set-response (status retry-data)

  ;; support mutlibyte character
  (set-buffer-multibyte t)

  (destructuring-bind (api req transform resp num) retry-data
    (condition-case err
        (gh-api-response-init resp (current-buffer) transform)
       (if (or (null num) (zerop num))
           (signal (car err) (cdr err))
         (logito:info api "Retrying request %s %s"
                      (oref req :method) (oref req :url))
         (let ((num (1- num)))
           (gh-api-run-request api req transform resp num)))))))


should be ok in v0.6.1

@sigma sigma closed this Mar 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment