{"action":"created","issue":{"url":"https://api.github.com/repos/azavea/django-queryset-csv/issues/72","labels_url":"https://api.github.com/repos/azavea/django-queryset-csv/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/azavea/django-queryset-csv/issues/72/comments","events_url":"https://api.github.com/repos/azavea/django-queryset-csv/issues/72/events","html_url":"https://github.com/azavea/django-queryset-csv/issues/72","id":96492746,"number":72,"title":"UnicodeEncodeError: 'ascii' codec can't encode character u'\\xed' in position 1: ordinal not in range(128)","user":{"login":"cubiczx","id":12655600,"avatar_url":"https://avatars.githubusercontent.com/u/12655600?v=3","gravatar_id":"","url":"https://api.github.com/users/cubiczx","html_url":"https://github.com/cubiczx","followers_url":"https://api.github.com/users/cubiczx/followers","following_url":"https://api.github.com/users/cubiczx/following{/other_user}","gists_url":"https://api.github.com/users/cubiczx/gists{/gist_id}","starred_url":"https://api.github.com/users/cubiczx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cubiczx/subscriptions","organizations_url":"https://api.github.com/users/cubiczx/orgs","repos_url":"https://api.github.com/users/cubiczx/repos","events_url":"https://api.github.com/users/cubiczx/events{/privacy}","received_events_url":"https://api.github.com/users/cubiczx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-22T07:19:05Z","updated_at":"2015-07-22T17:39:53Z","closed_at":null,"body":"Problem with:\r\n```\r\ní\t237\tu’\\xed’\t\\xc3\\xad\t\\xed\tLatin small i with acute\r\n```\r\n```shell\r\nTraceback (most recent call last):\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/handlers/base.py\", line 114, in get_response\r\n    response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/views/generic/base.py\", line 69, in view\r\n    return self.dispatch(request, *args, **kwargs)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/views/generic/base.py\", line 87, in dispatch\r\n    return handler(request, *args, **kwargs)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/utils/decorators.py\", line 29, in _wrapper\r\n    return bound_func(*args, **kwargs)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/contrib/auth/decorators.py\", line 22, in _wrapped_view\r\n    return view_func(request, *args, **kwargs)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/utils/decorators.py\", line 25, in bound_func\r\n    return func(self, *args2, **kwargs2)\r\n  File \"/Users/xpalacin/Sites/django_guiaterapeutica/main/views.py\", line 148, in get\r\n    text = render_to_csv_response(queryset)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/djqscsv/djqscsv.py\", line 49, in render_to_csv_response\r\n    write_csv(queryset, response, **kwargs)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/djqscsv/djqscsv.py\", line 122, in write_csv\r\n    writer.writerow(merged_header_map)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/csv.py\", line 148, in writerow\r\n    return self.writer.writerow(self._dict_to_list(rowdict))\r\nUnicodeEncodeError: 'ascii' codec can't encode character u'\\xed' in position 1: ordinal not in range(128)\r\n```"},"comment":{"url":"https://api.github.com/repos/azavea/django-queryset-csv/issues/comments/123803437","html_url":"https://github.com/azavea/django-queryset-csv/issues/72#issuecomment-123803437","issue_url":"https://api.github.com/repos/azavea/django-queryset-csv/issues/72","id":123803437,"user":{"login":"steventlamb","id":1699455,"avatar_url":"https://avatars.githubusercontent.com/u/1699455?v=3","gravatar_id":"","url":"https://api.github.com/users/steventlamb","html_url":"https://github.com/steventlamb","followers_url":"https://api.github.com/users/steventlamb/followers","following_url":"https://api.github.com/users/steventlamb/following{/other_user}","gists_url":"https://api.github.com/users/steventlamb/gists{/gist_id}","starred_url":"https://api.github.com/users/steventlamb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steventlamb/subscriptions","organizations_url":"https://api.github.com/users/steventlamb/orgs","repos_url":"https://api.github.com/users/steventlamb/repos","events_url":"https://api.github.com/users/steventlamb/events{/privacy}","received_events_url":"https://api.github.com/users/steventlamb/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T17:39:53Z","updated_at":"2015-07-22T17:39:53Z","body":"Djqscsv *should* utf8 encode all values. Can you post your model definition, and a printout of the value of `queryset` at/before:\r\n```\r\nFile \"/Users/xpalacin/Sites/django_guiaterapeutica/main/views.py\", line 148, in get\r\n```"}}