setEncodingFrom('ISO-8859-15'); $inputCsv->output('firstname.csv'); //specifying a filename triggers header sending