{"action":"opened","number":116,"pull_request":{"url":"https://api.github.com/repos/rawdigits/wee-slack/pulls/116","id":48017199,"html_url":"https://github.com/rawdigits/wee-slack/pull/116","diff_url":"https://github.com/rawdigits/wee-slack/pull/116.diff","patch_url":"https://github.com/rawdigits/wee-slack/pull/116.patch","issue_url":"https://api.github.com/repos/rawdigits/wee-slack/issues/116","number":116,"state":"open","locked":false,"title":"Only decode messages if they are not already unicode","user":{"login":"trygveaa","id":601966,"avatar_url":"https://avatars.githubusercontent.com/u/601966?v=3","gravatar_id":"","url":"https://api.github.com/users/trygveaa","html_url":"https://github.com/trygveaa","followers_url":"https://api.github.com/users/trygveaa/followers","following_url":"https://api.github.com/users/trygveaa/following{/other_user}","gists_url":"https://api.github.com/users/trygveaa/gists{/gist_id}","starred_url":"https://api.github.com/users/trygveaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trygveaa/subscriptions","organizations_url":"https://api.github.com/users/trygveaa/orgs","repos_url":"https://api.github.com/users/trygveaa/repos","events_url":"https://api.github.com/users/trygveaa/events{/privacy}","received_events_url":"https://api.github.com/users/trygveaa/received_events","type":"User","site_admin":false},"body":"Some messages are already of type unicode when sent into buffer_prnt.\r\nThis makes message.decode fail with the following error:\r\n\r\n    UnicodeEncodeError: 'ascii' codec can't encode character u'\\xe5' in\r\n    position 76: ordinal not in range(128)","created_at":"2015-10-18T20:38:41Z","updated_at":"2015-10-18T20:38:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rawdigits/wee-slack/pulls/116/commits","review_comments_url":"https://api.github.com/repos/rawdigits/wee-slack/pulls/116/comments","review_comment_url":"https://api.github.com/repos/rawdigits/wee-slack/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rawdigits/wee-slack/issues/116/comments","statuses_url":"https://api.github.com/repos/rawdigits/wee-slack/statuses/5eb0a19aeec23324ccc3a245613eab0a48f5d398","head":{"label":"trygveaa:fix/decode-message-error","ref":"fix/decode-message-error","sha":"5eb0a19aeec23324ccc3a245613eab0a48f5d398","user":{"login":"trygveaa","id":601966,"avatar_url":"https://avatars.githubusercontent.com/u/601966?v=3","gravatar_id":"","url":"https://api.github.com/users/trygveaa","html_url":"https://github.com/trygveaa","followers_url":"https://api.github.com/users/trygveaa/followers","following_url":"https://api.github.com/users/trygveaa/following{/other_user}","gists_url":"https://api.github.com/users/trygveaa/gists{/gist_id}","starred_url":"https://api.github.com/users/trygveaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trygveaa/subscriptions","organizations_url":"https://api.github.com/users/trygveaa/orgs","repos_url":"https://api.github.com/users/trygveaa/repos","events_url":"https://api.github.com/users/trygveaa/events{/privacy}","received_events_url":"https://api.github.com/users/trygveaa/received_events","type":"User","site_admin":false},"repo":{"id":44495095,"name":"wee-slack","full_name":"trygveaa/wee-slack","owner":{"login":"trygveaa","id":601966,"avatar_url":"https://avatars.githubusercontent.com/u/601966?v=3","gravatar_id":"","url":"https://api.github.com/users/trygveaa","html_url":"https://github.com/trygveaa","followers_url":"https://api.github.com/users/trygveaa/followers","following_url":"https://api.github.com/users/trygveaa/following{/other_user}","gists_url":"https://api.github.com/users/trygveaa/gists{/gist_id}","starred_url":"https://api.github.com/users/trygveaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trygveaa/subscriptions","organizations_url":"https://api.github.com/users/trygveaa/orgs","repos_url":"https://api.github.com/users/trygveaa/repos","events_url":"https://api.github.com/users/trygveaa/events{/privacy}","received_events_url":"https://api.github.com/users/trygveaa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/trygveaa/wee-slack","description":"A WeeChat plugin for Slack.com. Synchronizes read markers, provides typing notification, search, etc..","fork":true,"url":"https://api.github.com/repos/trygveaa/wee-slack","forks_url":"https://api.github.com/repos/trygveaa/wee-slack/forks","keys_url":"https://api.github.com/repos/trygveaa/wee-slack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trygveaa/wee-slack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trygveaa/wee-slack/teams","hooks_url":"https://api.github.com/repos/trygveaa/wee-slack/hooks","issue_events_url":"https://api.github.com/repos/trygveaa/wee-slack/issues/events{/number}","events_url":"https://api.github.com/repos/trygveaa/wee-slack/events","assignees_url":"https://api.github.com/repos/trygveaa/wee-slack/assignees{/user}","branches_url":"https://api.github.com/repos/trygveaa/wee-slack/branches{/branch}","tags_url":"https://api.github.com/repos/trygveaa/wee-slack/tags","blobs_url":"https://api.github.com/repos/trygveaa/wee-slack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trygveaa/wee-slack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trygveaa/wee-slack/git/refs{/sha}","trees_url":"https://api.github.com/repos/trygveaa/wee-slack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trygveaa/wee-slack/statuses/{sha}","languages_url":"https://api.github.com/repos/trygveaa/wee-slack/languages","stargazers_url":"https://api.github.com/repos/trygveaa/wee-slack/stargazers","contributors_url":"https://api.github.com/repos/trygveaa/wee-slack/contributors","subscribers_url":"https://api.github.com/repos/trygveaa/wee-slack/subscribers","subscription_url":"https://api.github.com/repos/trygveaa/wee-slack/subscription","commits_url":"https://api.github.com/repos/trygveaa/wee-slack/commits{/sha}","git_commits_url":"https://api.github.com/repos/trygveaa/wee-slack/git/commits{/sha}","comments_url":"https://api.github.com/repos/trygveaa/wee-slack/comments{/number}","issue_comment_url":"https://api.github.com/repos/trygveaa/wee-slack/issues/comments{/number}","contents_url":"https://api.github.com/repos/trygveaa/wee-slack/contents/{+path}","compare_url":"https://api.github.com/repos/trygveaa/wee-slack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trygveaa/wee-slack/merges","archive_url":"https://api.github.com/repos/trygveaa/wee-slack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trygveaa/wee-slack/downloads","issues_url":"https://api.github.com/repos/trygveaa/wee-slack/issues{/number}","pulls_url":"https://api.github.com/repos/trygveaa/wee-slack/pulls{/number}","milestones_url":"https://api.github.com/repos/trygveaa/wee-slack/milestones{/number}","notifications_url":"https://api.github.com/repos/trygveaa/wee-slack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trygveaa/wee-slack/labels{/name}","releases_url":"https://api.github.com/repos/trygveaa/wee-slack/releases{/id}","created_at":"2015-10-18T20:25:57Z","updated_at":"2015-10-18T20:25:58Z","pushed_at":"2015-10-18T20:35:31Z","git_url":"git://github.com/trygveaa/wee-slack.git","ssh_url":"git@github.com:trygveaa/wee-slack.git","clone_url":"https://github.com/trygveaa/wee-slack.git","svn_url":"https://github.com/trygveaa/wee-slack","homepage":"","size":1628,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rawdigits:master","ref":"master","sha":"2d50c4e59ae603706840ea42ec1e718c62232458","user":{"login":"rawdigits","id":1096409,"avatar_url":"https://avatars.githubusercontent.com/u/1096409?v=3","gravatar_id":"","url":"https://api.github.com/users/rawdigits","html_url":"https://github.com/rawdigits","followers_url":"https://api.github.com/users/rawdigits/followers","following_url":"https://api.github.com/users/rawdigits/following{/other_user}","gists_url":"https://api.github.com/users/rawdigits/gists{/gist_id}","starred_url":"https://api.github.com/users/rawdigits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rawdigits/subscriptions","organizations_url":"https://api.github.com/users/rawdigits/orgs","repos_url":"https://api.github.com/users/rawdigits/repos","events_url":"https://api.github.com/users/rawdigits/events{/privacy}","received_events_url":"https://api.github.com/users/rawdigits/received_events","type":"User","site_admin":false},"repo":{"id":18410202,"name":"wee-slack","full_name":"rawdigits/wee-slack","owner":{"login":"rawdigits","id":1096409,"avatar_url":"https://avatars.githubusercontent.com/u/1096409?v=3","gravatar_id":"","url":"https://api.github.com/users/rawdigits","html_url":"https://github.com/rawdigits","followers_url":"https://api.github.com/users/rawdigits/followers","following_url":"https://api.github.com/users/rawdigits/following{/other_user}","gists_url":"https://api.github.com/users/rawdigits/gists{/gist_id}","starred_url":"https://api.github.com/users/rawdigits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rawdigits/subscriptions","organizations_url":"https://api.github.com/users/rawdigits/orgs","repos_url":"https://api.github.com/users/rawdigits/repos","events_url":"https://api.github.com/users/rawdigits/events{/privacy}","received_events_url":"https://api.github.com/users/rawdigits/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rawdigits/wee-slack","description":"A WeeChat plugin for Slack.com. Synchronizes read markers, provides typing notification, search, etc..","fork":false,"url":"https://api.github.com/repos/rawdigits/wee-slack","forks_url":"https://api.github.com/repos/rawdigits/wee-slack/forks","keys_url":"https://api.github.com/repos/rawdigits/wee-slack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rawdigits/wee-slack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rawdigits/wee-slack/teams","hooks_url":"https://api.github.com/repos/rawdigits/wee-slack/hooks","issue_events_url":"https://api.github.com/repos/rawdigits/wee-slack/issues/events{/number}","events_url":"https://api.github.com/repos/rawdigits/wee-slack/events","assignees_url":"https://api.github.com/repos/rawdigits/wee-slack/assignees{/user}","branches_url":"https://api.github.com/repos/rawdigits/wee-slack/branches{/branch}","tags_url":"https://api.github.com/repos/rawdigits/wee-slack/tags","blobs_url":"https://api.github.com/repos/rawdigits/wee-slack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rawdigits/wee-slack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rawdigits/wee-slack/git/refs{/sha}","trees_url":"https://api.github.com/repos/rawdigits/wee-slack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rawdigits/wee-slack/statuses/{sha}","languages_url":"https://api.github.com/repos/rawdigits/wee-slack/languages","stargazers_url":"https://api.github.com/repos/rawdigits/wee-slack/stargazers","contributors_url":"https://api.github.com/repos/rawdigits/wee-slack/contributors","subscribers_url":"https://api.github.com/repos/rawdigits/wee-slack/subscribers","subscription_url":"https://api.github.com/repos/rawdigits/wee-slack/subscription","commits_url":"https://api.github.com/repos/rawdigits/wee-slack/commits{/sha}","git_commits_url":"https://api.github.com/repos/rawdigits/wee-slack/git/commits{/sha}","comments_url":"https://api.github.com/repos/rawdigits/wee-slack/comments{/number}","issue_comment_url":"https://api.github.com/repos/rawdigits/wee-slack/issues/comments{/number}","contents_url":"https://api.github.com/repos/rawdigits/wee-slack/contents/{+path}","compare_url":"https://api.github.com/repos/rawdigits/wee-slack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rawdigits/wee-slack/merges","archive_url":"https://api.github.com/repos/rawdigits/wee-slack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rawdigits/wee-slack/downloads","issues_url":"https://api.github.com/repos/rawdigits/wee-slack/issues{/number}","pulls_url":"https://api.github.com/repos/rawdigits/wee-slack/pulls{/number}","milestones_url":"https://api.github.com/repos/rawdigits/wee-slack/milestones{/number}","notifications_url":"https://api.github.com/repos/rawdigits/wee-slack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rawdigits/wee-slack/labels{/name}","releases_url":"https://api.github.com/repos/rawdigits/wee-slack/releases{/id}","created_at":"2014-04-03T16:34:39Z","updated_at":"2015-10-14T17:31:02Z","pushed_at":"2015-10-18T20:38:41Z","git_url":"git://github.com/rawdigits/wee-slack.git","ssh_url":"git@github.com:rawdigits/wee-slack.git","clone_url":"https://github.com/rawdigits/wee-slack.git","svn_url":"https://github.com/rawdigits/wee-slack","homepage":"","size":1628,"stargazers_count":190,"watchers_count":190,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"open_issues_count":25,"forks":28,"open_issues":25,"watchers":190,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rawdigits/wee-slack/pulls/116"},"html":{"href":"https://github.com/rawdigits/wee-slack/pull/116"},"issue":{"href":"https://api.github.com/repos/rawdigits/wee-slack/issues/116"},"comments":{"href":"https://api.github.com/repos/rawdigits/wee-slack/issues/116/comments"},"review_comments":{"href":"https://api.github.com/repos/rawdigits/wee-slack/pulls/116/comments"},"review_comment":{"href":"https://api.github.com/repos/rawdigits/wee-slack/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rawdigits/wee-slack/pulls/116/commits"},"statuses":{"href":"https://api.github.com/repos/rawdigits/wee-slack/statuses/5eb0a19aeec23324ccc3a245613eab0a48f5d398"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":1,"changed_files":1}}