Skip to content

Commit

Permalink
Merge pull request #78 from fsr5-fhaachen/feat/till
Browse files Browse the repository at this point in the history
Export with special Characters
  • Loading branch information
TitusKirch authored Oct 20, 2023
2 parents 6c91d9e + 79bc959 commit 4e599c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Http/Controllers/ExportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ public function createCsv(){
['person_id', '=', $person->id],
['article_id', '=', 4]
])->count();

fputcsv($file, array($row['Nachname'], $row['Vorname'], $row['Anz_Bier'], $row['Anz_Radler'], $row['Anz_Softdrink'], $row['Anz_Wasser']), ';');
$array = array($row['Nachname'], $row['Vorname'], $row['Anz_Bier'], $row['Anz_Radler'], $row['Anz_Softdrink'], $row['Anz_Wasser']);
$array = array_map("utf8_decode", $array);
fputcsv($file, $array, ';');
}

fclose($file);
};

Expand Down

0 comments on commit 4e599c7

Please sign in to comment.