Export with utf-8 characters (#1958)

This commit is contained in:
Alexander Shapoval 2016-04-25 23:27:33 +03:00 committed by Samuel Georges
parent 41fe2407be
commit 2f81d2fe0b

View File

@ -100,6 +100,8 @@ abstract class ExportModel extends Model
* Prepare CSV
*/
$csv = CsvWriter::createFromFileObject(new SplTempFileObject);
$csv->setOutputBOM(AbstractCsv::BOM_UTF8);
if ($options['delimiter'] !== null) {
$csv->setDelimiter($options['delimiter']);