Opened 2 years ago

Closed 2 years ago

#22521 closed Cleanup/optimization (wontfix)

Moderinze CSV export docs to cover UTF8 sheets.

Reported by: brycenesbitt Owned by: nobody
Component: Documentation Version: 1.6
Severity: Normal Keywords: csv
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

To the documentation at:
https://docs.djangoproject.com/en/dev/howto/outputting-csv/

I suggest adding:
response.write(u'\ufeff'.encode('utf8'))

At this point any new software should certainly be writing out utf8 spreadsheets, and
the byte order mark is needed by various versions of MS Excel to properly interpret the utf8 sheets.

Change History (1)

comment:1 Changed 2 years ago by Claude Paroz

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Resolution: wontfix
Status: newclosed

I'm not sure it's the role of Django to promote workaround hacks for proprietary software. BOM markers seem to be controversial for UTF-8 files, so let's that for blogs or Django snippets.
I'm closing the ticket for now, but feel free to open a discussion on django-dev mailing list, and reopen it if you get support.

Note: See TracTickets for help on using tickets.
Back to Top