{"action":"created","issue":{"url":"https://api.github.com/repos/taigaio/taiga-back/issues/466","labels_url":"https://api.github.com/repos/taigaio/taiga-back/issues/466/labels{/name}","comments_url":"https://api.github.com/repos/taigaio/taiga-back/issues/466/comments","events_url":"https://api.github.com/repos/taigaio/taiga-back/issues/466/events","html_url":"https://github.com/taigaio/taiga-back/issues/466","id":107069020,"number":466,"title":"project -> export not working","user":{"login":"maerten","id":474562,"avatar_url":"https://avatars.githubusercontent.com/u/474562?v=3","gravatar_id":"","url":"https://api.github.com/users/maerten","html_url":"https://github.com/maerten","followers_url":"https://api.github.com/users/maerten/followers","following_url":"https://api.github.com/users/maerten/following{/other_user}","gists_url":"https://api.github.com/users/maerten/gists{/gist_id}","starred_url":"https://api.github.com/users/maerten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maerten/subscriptions","organizations_url":"https://api.github.com/users/maerten/orgs","repos_url":"https://api.github.com/users/maerten/repos","events_url":"https://api.github.com/users/maerten/events{/privacy}","received_events_url":"https://api.github.com/users/maerten/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-17T20:35:40Z","updated_at":"2015-09-18T07:51:33Z","closed_at":"2015-09-18T05:11:32Z","body":"Clicking the export button results in an error.\r\n\r\nRequest is an XHR GET /api/v1/exporter/4\r\nThe UserStories are created with the API and may contain special characters or weird encoding. Not sure if that is the cause of the problem though.\r\n\r\nLog:\r\n\r\n````\r\nERROR:2015-09-17 20:31:10,287: Internal Server Error: /api/v1/exporter/4\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.4/site-packages/django/core/handlers/base.py\", line 111, in get_response\r\n    response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\n  File \"/usr/local/taiga/taiga-back/taiga/base/api/viewsets.py\", line 81, in view\r\n    return self.dispatch(request, *args, **kwargs)\r\n  File \"/usr/local/lib/python3.4/site-packages/django/views/decorators/csrf.py\", line 57, in wrapped_view\r\n    return view_func(*args, **kwargs)\r\n  File \"/usr/local/taiga/taiga-back/taiga/base/api/views.py\", line 420, in dispatch\r\n    response = self.handle_exception(exc)\r\n  File \"/usr/local/taiga/taiga-back/taiga/base/api/views.py\", line 417, in dispatch\r\n    response = handler(request, *args, **kwargs)\r\n  File \"/usr/local/taiga/taiga-back/taiga/export_import/api.py\", line 73, in retrieve\r\n    default_storage.save(path, content)\r\n  File \"/usr/local/lib/python3.4/site-packages/django/core/files/storage.py\", line 51, in save\r\n    name = self._save(name, content)\r\n  File \"/usr/local/lib/python3.4/site-packages/django/core/files/storage.py\", line 227, in _save\r\n    _file.write(chunk)\r\nUnicodeEncodeError: 'ascii' codec can't encode character '\\xe9' in position 15006: ordinal not in range(128)\r\n````\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/taigaio/taiga-back/issues/comments/141373406","html_url":"https://github.com/taigaio/taiga-back/issues/466#issuecomment-141373406","issue_url":"https://api.github.com/repos/taigaio/taiga-back/issues/466","id":141373406,"user":{"login":"maerten","id":474562,"avatar_url":"https://avatars.githubusercontent.com/u/474562?v=3","gravatar_id":"","url":"https://api.github.com/users/maerten","html_url":"https://github.com/maerten","followers_url":"https://api.github.com/users/maerten/followers","following_url":"https://api.github.com/users/maerten/following{/other_user}","gists_url":"https://api.github.com/users/maerten/gists{/gist_id}","starred_url":"https://api.github.com/users/maerten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maerten/subscriptions","organizations_url":"https://api.github.com/users/maerten/orgs","repos_url":"https://api.github.com/users/maerten/repos","events_url":"https://api.github.com/users/maerten/events{/privacy}","received_events_url":"https://api.github.com/users/maerten/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T07:51:33Z","updated_at":"2015-09-18T07:51:33Z","body":"Hi @superalex , I have put the LANG en LC_TYPE as suggested in #298, however it didn't resolve the issue. Also I'm running python 3.4 as mentioned in #343.\r\nI think the difference with #298 and #343 is that there it was about decoding filenames, this issue is about writing the UTF8 file contents.\r\n\r\nShouldn't Taiga be able to export UTF8 by default? If the database uses UTF8, so should the exports?\r\n\r\nAnyway, as I'm using a Docker image that could be the cause as well, I'm not re-opening the issue."}}