Views Export not displaying accents properly
Laurent_ - October 9, 2009 - 12:01
| Project: | Views Bonus Pack |
| Version: | 6.x-1.x-dev |
| Component: | Views Export |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Jump to:
Description
Hi
Views export is not displaying accents (é, à, è, ...) properly in csv export.
Attached patch fixes it both in header and rows (solution taken from webform export module)
Could you please review and commit it if patch is OK ?
Laurent
| Attachment | Size |
|---|---|
| export.patch | 1.02 KB |

#1
This seems wrong. If nothing other than earlier in the function we run
drupal_set_header('Content-type: text/csv; charset=utf-8');#2
There may be a better alternative, but at least this solved the accent issues.
FYI this is a very common issue on web applications (Google Adwords has exactly the same issue with accents when exporting a csv...).
#3
#4
I tried this patch and got È, ‡, Ë instead of é, à, è in excel so don't think this really works.