diff --git a/app/Http/Controllers/ExportController.php b/app/Http/Controllers/ExportController.php index b298992..f2809a8 100644 --- a/app/Http/Controllers/ExportController.php +++ b/app/Http/Controllers/ExportController.php @@ -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); };