{"action":"created","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":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-08T19:47:25Z","updated_at":"2015-10-10T18:37:42Z","closed_at":null,"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"},"comment":{"url":"https://api.github.com/repos/yask123/Instant-Music-Downloader/issues/comments/147115197","html_url":"https://github.com/yask123/Instant-Music-Downloader/issues/30#issuecomment-147115197","issue_url":"https://api.github.com/repos/yask123/Instant-Music-Downloader/issues/30","id":147115197,"user":{"login":"yask123","id":1812021,"avatar_url":"https://avatars.githubusercontent.com/u/1812021?v=3","gravatar_id":"","url":"https://api.github.com/users/yask123","html_url":"https://github.com/yask123","followers_url":"https://api.github.com/users/yask123/followers","following_url":"https://api.github.com/users/yask123/following{/other_user}","gists_url":"https://api.github.com/users/yask123/gists{/gist_id}","starred_url":"https://api.github.com/users/yask123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yask123/subscriptions","organizations_url":"https://api.github.com/users/yask123/orgs","repos_url":"https://api.github.com/users/yask123/repos","events_url":"https://api.github.com/users/yask123/events{/privacy}","received_events_url":"https://api.github.com/users/yask123/received_events","type":"User","site_admin":false},"created_at":"2015-10-10T18:37:42Z","updated_at":"2015-10-10T18:37:42Z","body":"Ah, It worked fine in my terminal \r\n```\r\nEnter songname/lyrics/artist or other\r\n> 今天我\r\nSearching...\r\nFound: [0] 今天我非常寂寞\r\n[1] 钟镇涛-今天我非常寂寞.flv\r\n[2] 【中字】朴有天 看見味道的少女OST \"今天我也(난 오늘도)\" MV\r\n[3] 《今天我是谁?》BUSYBODY - Episode 1\r\n[4] 《今天，我把媽媽unfriend了》\r\n[5] 《今天我是谁?》BUSYBODY - Episode 7\r\n[6] 《今天我是谁?》BUSYBODY - Episode 2\r\n[7] 20140207 中国好歌曲 《今天我疯了》 43岁老钱秀方言蓝调 刘欢飙西安话力挺（周华健组）\r\n[8] 今天我生日唷!\r\n[9] 经典老电影《今天我休息》Classical Chinese Movie: A Day of A Policeman\r\n[10] 《今天我是谁?》BUSYBODY - Episode 8\r\n[11] 《今天我是谁?》BUSYBODY - Episode 3\r\n[12] 《今天我相亲》\r\n[13] 《今天我是谁?》BUSYBODY - Episode 10\r\n[14] 国产经典黑白老电影《今天我休息》 1959年\r\n[15] 20151010今天我最美\r\n[16] 《今天我是谁?》BUSYBODY - Episode 12\r\n[17] 今天我最美走光特輯\r\n[18] 04. 朱咪咪 - 今天的我\r\n[19] 今天我相亲 奋斗男遇上\"富二代\"\r\nPick one:\r\n```\r\nMaybe its related to terminal fonts?\r\nI am using `iterm2 ` on OSX."}}