{"action":"created","issue":{"url":"https://api.github.com/repos/gunthercox/ChatterBot/issues/269","repository_url":"https://api.github.com/repos/gunthercox/ChatterBot","labels_url":"https://api.github.com/repos/gunthercox/ChatterBot/issues/269/labels{/name}","comments_url":"https://api.github.com/repos/gunthercox/ChatterBot/issues/269/comments","events_url":"https://api.github.com/repos/gunthercox/ChatterBot/issues/269/events","html_url":"https://github.com/gunthercox/ChatterBot/pull/269","id":174013048,"number":269,"title":"Avoid problems in str.format() with char accents","user":{"login":"davizucon","id":6062914,"avatar_url":"https://avatars.githubusercontent.com/u/6062914?v=3","gravatar_id":"","url":"https://api.github.com/users/davizucon","html_url":"https://github.com/davizucon","followers_url":"https://api.github.com/users/davizucon/followers","following_url":"https://api.github.com/users/davizucon/following{/other_user}","gists_url":"https://api.github.com/users/davizucon/gists{/gist_id}","starred_url":"https://api.github.com/users/davizucon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davizucon/subscriptions","organizations_url":"https://api.github.com/users/davizucon/orgs","repos_url":"https://api.github.com/users/davizucon/repos","events_url":"https://api.github.com/users/davizucon/events{/privacy}","received_events_url":"https://api.github.com/users/davizucon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-30T13:02:47Z","updated_at":"2016-09-04T15:06:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gunthercox/ChatterBot/pulls/269","html_url":"https://github.com/gunthercox/ChatterBot/pull/269","diff_url":"https://github.com/gunthercox/ChatterBot/pull/269.diff","patch_url":"https://github.com/gunthercox/ChatterBot/pull/269.patch"},"body":"If you input a char like \"é\" or \"ã\" with terminalAdapter, in log method str.format(), if no unicode .format(() raise a error.\r\n\r\nTo reproduce, just clone master, and run with IN/OUT using TerminalAdapter.\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/gunthercox/ChatterBot/issues/comments/244608562","html_url":"https://github.com/gunthercox/ChatterBot/pull/269#issuecomment-244608562","issue_url":"https://api.github.com/repos/gunthercox/ChatterBot/issues/269","id":244608562,"user":{"login":"gunthercox","id":2030578,"avatar_url":"https://avatars.githubusercontent.com/u/2030578?v=3","gravatar_id":"","url":"https://api.github.com/users/gunthercox","html_url":"https://github.com/gunthercox","followers_url":"https://api.github.com/users/gunthercox/followers","following_url":"https://api.github.com/users/gunthercox/following{/other_user}","gists_url":"https://api.github.com/users/gunthercox/gists{/gist_id}","starred_url":"https://api.github.com/users/gunthercox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gunthercox/subscriptions","organizations_url":"https://api.github.com/users/gunthercox/orgs","repos_url":"https://api.github.com/users/gunthercox/repos","events_url":"https://api.github.com/users/gunthercox/events{/privacy}","received_events_url":"https://api.github.com/users/gunthercox/received_events","type":"User","site_admin":false},"created_at":"2016-09-04T15:06:17Z","updated_at":"2016-09-04T15:06:17Z","body":"Hi @davizucon, sorry about the delay in reviewing this. I was able to confirm the issue, but I'm going to have to make a small change to the pull request so that it doesn't break Python 3 compatibility.\r\n\r\nPython 3 has an improved way of dealing with strings which eliminates issues with unicode characters, however it breaks backwards compatibility with the string decode method.\r\n\r\nPython 3:\r\n```python\r\n'é'.decode('utf-8')\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\nAttributeError: 'str' object has no attribute 'decode'\r\n```\r\n\r\nPython 2.7:\r\n```python\r\n'é'.decode('utf-8')\r\n\r\n>>> u'\\xe9'\r\n```\r\n\r\n\r\n"}}
{"actor":{"display_login":"gunthercox"}}