Skip to content

Export Unicode data to csv: UnicodeEncodeError #21

@aprilmay

Description

@aprilmay

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions