setOutputBOM(Reader::BOM_UTF8); //if the current BOM setting differs with //the one supplied it will be automatically updated $csv->output('test.csv');