{"action":"closed","issue":{"url":"https://api.github.com/repos/yask123/Instant-Music-Downloader/issues/30","labels_url":"https://api.github.com/repos/yask123/Instant-Music-Downloader/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/yask123/Instant-Music-Downloader/issues/30/comments","events_url":"https://api.github.com/repos/yask123/Instant-Music-Downloader/issues/30/events","html_url":"https://github.com/yask123/Instant-Music-Downloader/issues/30","id":110527840,"number":30,"title":"Crash when printing unicode results","user":{"login":"sergiocorreia","id":214056,"avatar_url":"https://avatars.githubusercontent.com/u/214056?v=3","gravatar_id":"","url":"https://api.github.com/users/sergiocorreia","html_url":"https://github.com/sergiocorreia","followers_url":"https://api.github.com/users/sergiocorreia/followers","following_url":"https://api.github.com/users/sergiocorreia/following{/other_user}","gists_url":"https://api.github.com/users/sergiocorreia/gists{/gist_id}","starred_url":"https://api.github.com/users/sergiocorreia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergiocorreia/subscriptions","organizations_url":"https://api.github.com/users/sergiocorreia/orgs","repos_url":"https://api.github.com/users/sergiocorreia/repos","events_url":"https://api.github.com/users/sergiocorreia/events{/privacy}","received_events_url":"https://api.github.com/users/sergiocorreia/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-08T19:47:25Z","updated_at":"2015-10-11T22:02:02Z","closed_at":"2015-10-11T22:02:02Z","body":"```\r\nTraceback (most recent call last):\r\n  File \"C:\\Program Files (x86)\\Python 3.5\\Scripts\\instantmusic.py\", line 36, in <module>\r\n    print(\"Found: \" + title)\r\n  File \"c:\\program files (x86)\\python 3.5\\lib\\encodings\\cp437.py\", line 19, in encode\r\n    return codecs.charmap_encode(input,self.errors,encoding_map)[0]\r\nUnicodeEncodeError: 'charmap' codec can't encode character '\\u2013' in position 35: character maps to <undefined>\r\n```\r\n\r\nA quick soln would be to add `import sys` and then replace the print line with:\r\n\r\n`print(\"Found: \" + title.encode('utf8').decode(sys.stdout.encoding))`\r\n\r\nThis should allow nice results on *nix and garbled but at least working results on windows\r\n\r\n"}}