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

CommentFileSizeAuthor
export.patch1.02 KBagence web coheractio

Comments

neclimdul’s picture

This seems wrong. If nothing other than earlier in the function we run drupal_set_header('Content-type: text/csv; charset=utf-8');

agence web coheractio’s picture

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...).

agence web coheractio’s picture

Status: Needs review » Active
neclimdul’s picture

Status: Active » Needs work

I tried this patch and got È, ‡, Ë instead of é, à, è in excel so don't think this really works.