/** * pre configuration of csv file */ protected function init() { $this->csvWriter->setDelimiter("\t"); //the delimiter will be the tab character $this->csvWriter->setNewline("\r\n"); //use windows line endings for compatibility with some csv libraries $this->csvWriter->setEncodingFrom("utf-8"); }