{"action":"created","issue":{"url":"https://api.github.com/repos/seikur0/PGO-mapscan-opt/issues/249","repository_url":"https://api.github.com/repos/seikur0/PGO-mapscan-opt","labels_url":"https://api.github.com/repos/seikur0/PGO-mapscan-opt/issues/249/labels{/name}","comments_url":"https://api.github.com/repos/seikur0/PGO-mapscan-opt/issues/249/comments","events_url":"https://api.github.com/repos/seikur0/PGO-mapscan-opt/issues/249/events","html_url":"https://github.com/seikur0/PGO-mapscan-opt/issues/249","id":179295681,"number":249,"title":"Telebot: UnicodeDecodeError on \"ignored pokemon\" message","user":{"login":"cmende","id":631602,"avatar_url":"https://avatars.githubusercontent.com/u/631602?v=3","gravatar_id":"","url":"https://api.github.com/users/cmende","html_url":"https://github.com/cmende","followers_url":"https://api.github.com/users/cmende/followers","following_url":"https://api.github.com/users/cmende/following{/other_user}","gists_url":"https://api.github.com/users/cmende/gists{/gist_id}","starred_url":"https://api.github.com/users/cmende/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmende/subscriptions","organizations_url":"https://api.github.com/users/cmende/orgs","repos_url":"https://api.github.com/users/cmende/repos","events_url":"https://api.github.com/users/cmende/events{/privacy}","received_events_url":"https://api.github.com/users/cmende/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-09-26T17:57:52Z","updated_at":"2016-09-26T19:23:48Z","closed_at":null,"body":"I currently get this when trying to get the list of ignored pokemons:\r\n```\r\nTraceback (most recent call last):\r\n  File \"telebot.py\", line 610, in <module>\r\n    bot.sendMessage(chat_id, message.format(arg=argdic), parse_mode=\"html\")\r\n  File \"/home/christoph/virtualenvs/pgo-mapscan/local/lib/python2.7/site-packages/telepot/__init__.py\", line 409, in sendMessage\r\n    return self._api_request('sendMessage', _rectify(p))\r\n  File \"/home/christoph/virtualenvs/pgo-mapscan/local/lib/python2.7/site-packages/telepot/__init__.py\", line 398, in _api_request\r\n    return api.request((self._token, method, params, files), **kwargs)\r\n  File \"/home/christoph/virtualenvs/pgo-mapscan/local/lib/python2.7/site-packages/telepot/api.py\", line 130, in request\r\n    r = fn(*args, **kwargs)  # `fn` must be thread-safe\r\n  File \"/home/christoph/virtualenvs/pgo-mapscan/local/lib/python2.7/site-packages/urllib3/request.py\", line 148, in request_encode_body\r\n    return self.urlopen(method, url, **extra_kw)\r\n  File \"/home/christoph/virtualenvs/pgo-mapscan/local/lib/python2.7/site-packages/urllib3/poolmanager.py\", line 244, in urlopen\r\n    response = conn.urlopen(method, u.request_uri, **kw)\r\n  File \"/home/christoph/virtualenvs/pgo-mapscan/local/lib/python2.7/site-packages/urllib3/connectionpool.py\", line 594, in urlopen\r\n    chunked=chunked)\r\n  File \"/home/christoph/virtualenvs/pgo-mapscan/local/lib/python2.7/site-packages/urllib3/connectionpool.py\", line 361, in _make_request\r\n    conn.request(method, url, **httplib_request_kw)\r\n  File \"/usr/lib/python2.7/httplib.py\", line 1039, in request\r\n    self._send_request(method, url, body, headers)\r\n  File \"/usr/lib/python2.7/httplib.py\", line 1073, in _send_request\r\n    self.endheaders(body)\r\n  File \"/usr/lib/python2.7/httplib.py\", line 1035, in endheaders\r\n    self._send_output(message_body)\r\n  File \"/usr/lib/python2.7/httplib.py\", line 877, in _send_output\r\n    msg += message_body\r\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 165: ordinal not in range(128)\r\n```\r\nOther commands work fine."},"comment":{"url":"https://api.github.com/repos/seikur0/PGO-mapscan-opt/issues/comments/249670785","html_url":"https://github.com/seikur0/PGO-mapscan-opt/issues/249#issuecomment-249670785","issue_url":"https://api.github.com/repos/seikur0/PGO-mapscan-opt/issues/249","id":249670785,"user":{"login":"seikur0","id":20639004,"avatar_url":"https://avatars.githubusercontent.com/u/20639004?v=3","gravatar_id":"","url":"https://api.github.com/users/seikur0","html_url":"https://github.com/seikur0","followers_url":"https://api.github.com/users/seikur0/followers","following_url":"https://api.github.com/users/seikur0/following{/other_user}","gists_url":"https://api.github.com/users/seikur0/gists{/gist_id}","starred_url":"https://api.github.com/users/seikur0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seikur0/subscriptions","organizations_url":"https://api.github.com/users/seikur0/orgs","repos_url":"https://api.github.com/users/seikur0/repos","events_url":"https://api.github.com/users/seikur0/events{/privacy}","received_events_url":"https://api.github.com/users/seikur0/received_events","type":"User","site_admin":false},"created_at":"2016-09-26T19:23:48Z","updated_at":"2016-09-26T19:23:48Z","body":"Why would you use ascii though, ascii can't encode all these emojis, take for instance the line `messages_ascii[m] = messages[m].decode(\"utf-8\").encode('ascii', 'replace')` that alone destroys all your emoticons in all your messages.\r\n\r\nSee the question mark in that message: `[20:03:57] [t] Text received: @xxx (xxx): '? Ignored pokemon'` That's an unicode character as well, that can't be depicted in ascii."}}
{"actor":{"display_login":"seikur0"}}