Merge branch 'csv-export-bom-header' into 'develop'

CSV export: add UTF-8 BOM header

See merge request framasoft/framadate/framadate!365
This commit is contained in:
Thomas Citharel 2019-04-16 11:43:07 +02:00
commit 0493a05526

View File

@ -73,6 +73,7 @@ $slots = $pollService->allSlotsByPoll($poll);
$votes = $pollService->allVotesByPollId($poll_id); $votes = $pollService->allVotesByPollId($poll_id);
// CSV header // CSV header
echo "\xEF\xBB\xBF"; // BOM character for UTF-8
if ($poll->format === 'D') { if ($poll->format === 'D') {
$titles_line = ','; $titles_line = ',';
$moments_line = ','; $moments_line = ',';