{"action":"created","issue":{"url":"https://api.github.com/repos/sopel-irc/sopel/issues/1040","repository_url":"https://api.github.com/repos/sopel-irc/sopel","labels_url":"https://api.github.com/repos/sopel-irc/sopel/issues/1040/labels{/name}","comments_url":"https://api.github.com/repos/sopel-irc/sopel/issues/1040/comments","events_url":"https://api.github.com/repos/sopel-irc/sopel/issues/1040/events","html_url":"https://github.com/sopel-irc/sopel/pull/1040","id":139463132,"number":1040,"title":"Use unicode strings to avoid UnicodeEncodeError","user":{"login":"jbnance","id":4754442,"avatar_url":"https://avatars.githubusercontent.com/u/4754442?v=3","gravatar_id":"","url":"https://api.github.com/users/jbnance","html_url":"https://github.com/jbnance","followers_url":"https://api.github.com/users/jbnance/followers","following_url":"https://api.github.com/users/jbnance/following{/other_user}","gists_url":"https://api.github.com/users/jbnance/gists{/gist_id}","starred_url":"https://api.github.com/users/jbnance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbnance/subscriptions","organizations_url":"https://api.github.com/users/jbnance/orgs","repos_url":"https://api.github.com/users/jbnance/repos","events_url":"https://api.github.com/users/jbnance/events{/privacy}","received_events_url":"https://api.github.com/users/jbnance/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-09T03:11:59Z","updated_at":"2016-03-09T16:00:48Z","closed_at":"2016-03-09T16:00:48Z","pull_request":{"url":"https://api.github.com/repos/sopel-irc/sopel/pulls/1040","html_url":"https://github.com/sopel-irc/sopel/pull/1040","diff_url":"https://github.com/sopel-irc/sopel/pull/1040.diff","patch_url":"https://github.com/sopel-irc/sopel/pull/1040.patch"},"body":"The URL module chokes when looking up the title of web pages that include unicode with the following error:\r\n\r\nUnicodeEncodeError: 'ascii' codec can't encode character u'\\xb7' in position 403: ordinal not in range(128) (file \"/opt/willie/venv/lib/python2.7/site-packages/sopel/modules/url.py\", line 191, in find_title)\r\n\r\n(have it look up https://github.com/sopel-irc/sopel-extras/pull/78 for an example)\r\n\r\nAvoid this issue by handling strings as unicode."},"comment":{"url":"https://api.github.com/repos/sopel-irc/sopel/issues/comments/194363333","html_url":"https://github.com/sopel-irc/sopel/pull/1040#issuecomment-194363333","issue_url":"https://api.github.com/repos/sopel-irc/sopel/issues/1040","id":194363333,"user":{"login":"elad661","id":498903,"avatar_url":"https://avatars.githubusercontent.com/u/498903?v=3","gravatar_id":"","url":"https://api.github.com/users/elad661","html_url":"https://github.com/elad661","followers_url":"https://api.github.com/users/elad661/followers","following_url":"https://api.github.com/users/elad661/following{/other_user}","gists_url":"https://api.github.com/users/elad661/gists{/gist_id}","starred_url":"https://api.github.com/users/elad661/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elad661/subscriptions","organizations_url":"https://api.github.com/users/elad661/orgs","repos_url":"https://api.github.com/users/elad661/repos","events_url":"https://api.github.com/users/elad661/events{/privacy}","received_events_url":"https://api.github.com/users/elad661/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T16:00:48Z","updated_at":"2016-03-09T16:00:48Z","body":"I've already merged a different pull request which fixed this issue ( #1028 )."}}