{"action":"created","issue":{"url":"https://api.github.com/repos/gunthercox/ChatterBot/issues/135","repository_url":"https://api.github.com/repos/gunthercox/ChatterBot","labels_url":"https://api.github.com/repos/gunthercox/ChatterBot/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/gunthercox/ChatterBot/issues/135/comments","events_url":"https://api.github.com/repos/gunthercox/ChatterBot/issues/135/events","html_url":"https://github.com/gunthercox/ChatterBot/issues/135","id":140365080,"number":135,"title":"UnicodeDecodeError: 'utf8' codec can't decode byte 0x8a in position 8: invalid start byte","user":{"login":"orfeomorello","id":761886,"avatar_url":"https://avatars.githubusercontent.com/u/761886?v=3","gravatar_id":"","url":"https://api.github.com/users/orfeomorello","html_url":"https://github.com/orfeomorello","followers_url":"https://api.github.com/users/orfeomorello/followers","following_url":"https://api.github.com/users/orfeomorello/following{/other_user}","gists_url":"https://api.github.com/users/orfeomorello/gists{/gist_id}","starred_url":"https://api.github.com/users/orfeomorello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orfeomorello/subscriptions","organizations_url":"https://api.github.com/users/orfeomorello/orgs","repos_url":"https://api.github.com/users/orfeomorello/repos","events_url":"https://api.github.com/users/orfeomorello/events{/privacy}","received_events_url":"https://api.github.com/users/orfeomorello/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-12T08:58:16Z","updated_at":"2016-03-12T09:35:04Z","closed_at":null,"body":"Hello, I used the Italian data to train the system. My platform is Windows 10 with Python 2.7\r\nWith the following example, i have no problems:\r\n\r\nfrom chatterbot import ChatBot\r\nchatbot = ChatBot(\"BotItaliano\")\r\nchatbot.train(\"chatterbot.corpus.italian\")\r\nchatbot.get_response(\"Ciao, come va?\")\r\n\r\nBut if i use the get_response with these words, in particular the \"è\" character\r\n\r\nchatbot.get_response(\"la vita è vita\")\r\n\r\ni have the error:\r\n\r\nC:\\Python27\\lib\\site-packages\\chatterbot\\adapters\\logic\\closest_match.py:28: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal\r\n  if input_statement.text in text_of_all_statements:\r\nC:\\Python27\\lib\\site-packages\\jsondb\\db.py:29: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal\r\n  if key in obj.keys():\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"C:\\Python27\\lib\\site-packages\\chatterbot\\chatterbot.py\", line 80, in get_response\r\n    self.storage.update(input_statement)\r\n  File \"C:\\Python27\\lib\\site-packages\\chatterbot\\adapters\\storage\\jsondatabase.py\", line 111, in update\r\n    self.database.data(key=statement.text, value=data)\r\n  File \"C:\\Python27\\lib\\site-packages\\jsondb\\db.py\", line 76, in data\r\n    self._set_content(key, value)\r\n  File \"C:\\Python27\\lib\\site-packages\\jsondb\\db.py\", line 40, in _set_content\r\n    data = write_data(self.path, obj)\r\n  File \"C:\\Python27\\lib\\site-packages\\jsondb\\file_writer.py\", line 22, in write_data\r\n    db.write(encode(obj))\r\n  File \"C:\\Python27\\lib\\site-packages\\jsondb\\compat.py\", line 19, in encode\r\n    return json_encode(value)\r\n  File \"C:\\Python27\\lib\\json\\__init__.py\", line 244, in dumps\r\n    return _default_encoder.encode(obj)\r\n  File \"C:\\Python27\\lib\\json\\encoder.py\", line 207, in encode\r\n    chunks = self.iterencode(o, _one_shot=True)\r\n  File \"C:\\Python27\\lib\\json\\encoder.py\", line 270, in iterencode\r\n    return _iterencode(o, 0)\r\nUnicodeDecodeError: 'utf8' codec can't decode byte 0x8a in position 8: invalid start byte\r\n>>>"},"comment":{"url":"https://api.github.com/repos/gunthercox/ChatterBot/issues/comments/195701338","html_url":"https://github.com/gunthercox/ChatterBot/issues/135#issuecomment-195701338","issue_url":"https://api.github.com/repos/gunthercox/ChatterBot/issues/135","id":195701338,"user":{"login":"orfeomorello","id":761886,"avatar_url":"https://avatars.githubusercontent.com/u/761886?v=3","gravatar_id":"","url":"https://api.github.com/users/orfeomorello","html_url":"https://github.com/orfeomorello","followers_url":"https://api.github.com/users/orfeomorello/followers","following_url":"https://api.github.com/users/orfeomorello/following{/other_user}","gists_url":"https://api.github.com/users/orfeomorello/gists{/gist_id}","starred_url":"https://api.github.com/users/orfeomorello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orfeomorello/subscriptions","organizations_url":"https://api.github.com/users/orfeomorello/orgs","repos_url":"https://api.github.com/users/orfeomorello/repos","events_url":"https://api.github.com/users/orfeomorello/events{/privacy}","received_events_url":"https://api.github.com/users/orfeomorello/received_events","type":"User","site_admin":false},"created_at":"2016-03-12T09:35:04Z","updated_at":"2016-03-12T09:35:04Z","body":"If i use Python 3.5 i have not this error, but when i start to have response, i see strange characters \r\n\r\n\"Cos'Ã¨ che vuoi sapere?\" \r\n\r\nit should be:\r\n\r\n\"Cos'è che vuoi sapere?\" \r\n"}}