{"action":"created","issue":{"url":"https://api.github.com/repos/scrapy/scrapy/issues/1588","labels_url":"https://api.github.com/repos/scrapy/scrapy/issues/1588/labels{/name}","comments_url":"https://api.github.com/repos/scrapy/scrapy/issues/1588/comments","events_url":"https://api.github.com/repos/scrapy/scrapy/issues/1588/events","html_url":"https://github.com/scrapy/scrapy/issues/1588","id":115788111,"number":1588,"title":"UnicodeDecodeError from scraper.py ","user":{"login":"pilgrim2go","id":8703838,"avatar_url":"https://avatars.githubusercontent.com/u/8703838?v=3","gravatar_id":"","url":"https://api.github.com/users/pilgrim2go","html_url":"https://github.com/pilgrim2go","followers_url":"https://api.github.com/users/pilgrim2go/followers","following_url":"https://api.github.com/users/pilgrim2go/following{/other_user}","gists_url":"https://api.github.com/users/pilgrim2go/gists{/gist_id}","starred_url":"https://api.github.com/users/pilgrim2go/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pilgrim2go/subscriptions","organizations_url":"https://api.github.com/users/pilgrim2go/orgs","repos_url":"https://api.github.com/users/pilgrim2go/repos","events_url":"https://api.github.com/users/pilgrim2go/events{/privacy}","received_events_url":"https://api.github.com/users/pilgrim2go/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-09T04:11:06Z","updated_at":"2016-01-19T09:14:09Z","closed_at":null,"body":"Hi,\r\n\r\nI'm using scrapy 1.0.3 in OSX and have following error when fetching.\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py\", line 851, in emit\r\n    msg = self.format(record)\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py\", line 724, in format\r\n    return fmt.format(record)\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py\", line 464, in format\r\n    record.message = record.getMessage()\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py\", line 328, in getMessage\r\n    msg = msg % self.args\r\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 26: ordinal not in range(128)\r\nLogged from file scraper.py, line 237\r\n\r\n```\r\n\r\nComment this line  in scrapyer.py removed the error.\r\n```\r\n            #logger.log(*logformatter_adapter(logkws), extra={'spider': spider})\r\n```\r\n\r\nWhat the issue is and how to solve it?\r\n\r\nThanks,\r\nVan"},"comment":{"url":"https://api.github.com/repos/scrapy/scrapy/issues/comments/172784178","html_url":"https://github.com/scrapy/scrapy/issues/1588#issuecomment-172784178","issue_url":"https://api.github.com/repos/scrapy/scrapy/issues/1588","id":172784178,"user":{"login":"kmike","id":107893,"avatar_url":"https://avatars.githubusercontent.com/u/107893?v=3","gravatar_id":"","url":"https://api.github.com/users/kmike","html_url":"https://github.com/kmike","followers_url":"https://api.github.com/users/kmike/followers","following_url":"https://api.github.com/users/kmike/following{/other_user}","gists_url":"https://api.github.com/users/kmike/gists{/gist_id}","starred_url":"https://api.github.com/users/kmike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmike/subscriptions","organizations_url":"https://api.github.com/users/kmike/orgs","repos_url":"https://api.github.com/users/kmike/repos","events_url":"https://api.github.com/users/kmike/events{/privacy}","received_events_url":"https://api.github.com/users/kmike/received_events","type":"User","site_admin":false},"created_at":"2016-01-19T09:14:08Z","updated_at":"2016-01-19T09:14:08Z","body":"Well, yeah, I believe it is a django bug. In 2012 I tried to [point](https://groups.google.com/forum/#!searchin/django-developers/mikhail$20korobov/django-developers/_UN_4hBtJRI/2ajESIItEVoJ) these problems to django devs, but they were not keen to fixing them. utf-8 in `__repr__` works better than ascii when console encoding is utf-8, but breaks when it's not; it looks like django devs were more interested in providing nice experience for people with utf-8 system than supporting non-utf8 consoles."}}