{"action":"created","issue":{"url":"https://api.github.com/repos/mfherbst/down-frab-videos/issues/1","repository_url":"https://api.github.com/repos/mfherbst/down-frab-videos","labels_url":"https://api.github.com/repos/mfherbst/down-frab-videos/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/mfherbst/down-frab-videos/issues/1/comments","events_url":"https://api.github.com/repos/mfherbst/down-frab-videos/issues/1/events","html_url":"https://github.com/mfherbst/down-frab-videos/issues/1","id":198226295,"number":1,"title":"'ascii' codec can't decode byte","user":{"login":"JanX2","id":192294,"avatar_url":"https://avatars.githubusercontent.com/u/192294?v=3","gravatar_id":"","url":"https://api.github.com/users/JanX2","html_url":"https://github.com/JanX2","followers_url":"https://api.github.com/users/JanX2/followers","following_url":"https://api.github.com/users/JanX2/following{/other_user}","gists_url":"https://api.github.com/users/JanX2/gists{/gist_id}","starred_url":"https://api.github.com/users/JanX2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanX2/subscriptions","organizations_url":"https://api.github.com/users/JanX2/orgs","repos_url":"https://api.github.com/users/JanX2/repos","events_url":"https://api.github.com/users/JanX2/events{/privacy}","received_events_url":"https://api.github.com/users/JanX2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-31T09:52:14Z","updated_at":"2016-12-31T11:18:51Z","closed_at":null,"body":"These 33c3 IDs result in the following error: \r\n\r\n```\r\n8018\r\n8037\r\n```\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/Users/jan/Development/Projects/down-frab-videos/down-frab-videos.py\", line 657, in <module>\r\n    downloader.download(talkid)\r\n  File \"/Users/jan/Development/Projects/down-frab-videos/down-frab-videos.py\", line 384, in download\r\n    f.write( self.info_text(talkid).encode('utf8'))\r\n  File \"/Users/jan/Development/Projects/down-frab-videos/down-frab-videos.py\", line 357, in info_text\r\n    ret += (\"  - {0:\" + str(maxlength) + \"s}   {1}\\n\").format(link['title'],link['url'])\r\nUnicodeEncodeError: 'ascii' codec can't encode character u'\\u2019' in position 7: ordinal not in range(128)\r\n```\r\n\r\nTried to resolves this, but apparently, my python foo is not strong enough."},"comment":{"url":"https://api.github.com/repos/mfherbst/down-frab-videos/issues/comments/269860546","html_url":"https://github.com/mfherbst/down-frab-videos/issues/1#issuecomment-269860546","issue_url":"https://api.github.com/repos/mfherbst/down-frab-videos/issues/1","id":269860546,"user":{"login":"mfherbst","id":11157893,"avatar_url":"https://avatars.githubusercontent.com/u/11157893?v=3","gravatar_id":"","url":"https://api.github.com/users/mfherbst","html_url":"https://github.com/mfherbst","followers_url":"https://api.github.com/users/mfherbst/followers","following_url":"https://api.github.com/users/mfherbst/following{/other_user}","gists_url":"https://api.github.com/users/mfherbst/gists{/gist_id}","starred_url":"https://api.github.com/users/mfherbst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfherbst/subscriptions","organizations_url":"https://api.github.com/users/mfherbst/orgs","repos_url":"https://api.github.com/users/mfherbst/repos","events_url":"https://api.github.com/users/mfherbst/events{/privacy}","received_events_url":"https://api.github.com/users/mfherbst/received_events","type":"User","site_admin":false},"created_at":"2016-12-31T11:18:50Z","updated_at":"2016-12-31T11:18:50Z","body":"Hey I'm on the train now, so cannot make lots of tests (slow net). But some things I noticed:\r\n   - You added the  ``.encode('utf8')`` in line 384, right? What was the reason for doing that?\r\n   - If you want to specify the encoding you can also use ``open(path,\"w\",encoding=\"utf-8\")`` afaik.\r\n     Does that work for you?\r\n\r\nMaybe it is also an issue with encoding of the json that I download from the Fahrplan using ``requests``. I'll look into that now."}}
{"actor":{"display_login":"mfherbst"}}