Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export Unicode data to csv: UnicodeEncodeError #21

Open
aprilmay opened this issue Nov 25, 2015 · 1 comment
Open

Export Unicode data to csv: UnicodeEncodeError #21

aprilmay opened this issue Nov 25, 2015 · 1 comment

Comments

@aprilmay
Copy link

Unicode data in fields break the csv export with an UnicodeEncodeError exception (mixins.py line 92, in build_csv_response).

Validated a quick fix, that would require using the unicodecsv drop-in replacement for the standard csv module.

In mixins.py, just replace:
import csv
by
import unicodecsv as csv

@AMongeMoreno
Copy link

I found another solution for this bug, it just require using the smart_str function provided by django in lines 98 and 148.
It is still open, btw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants