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

AttachmentSize
export.patch1.02 KB

#1

neclimdul - October 12, 2009 - 16:32

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

#2

Laurent_ - October 12, 2009 - 16:51

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

Laurent_ - December 6, 2009 - 16:10
Status:needs review» active

#4

neclimdul - December 6, 2009 - 19:29
Status:active» needs work

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

 
 

Drupal is a registered trademark of Dries Buytaert.