rap2hpoutre / fast-excel

🦉 Fast Excel import/export for Laravel
MIT License
2.08k stars 246 forks source link

download filename can't show utf-8 encode #333

Open foxkyo opened 1 year ago

foxkyo commented 1 year ago

return response()->streamDownload(function () {

$list = collect([ [ 'id' => 1, 'name' => 'Jane' ], [ 'id' => 2, 'name' => 'John' ], ]);

return (new FastExcel($list))
    ->export('php://output');

}, sprintf('filename中文.xlsx', ));

and it's download filename is 「filename.xlsx」 '中文' was gone