Skip to content

Commit 1727d2a

Browse files
authored
Merge pull request #5 from QuentinBontemps/patch-2
Fixe Excel UTF8 encode
2 parents e5bab74 + 8ada981 commit 1727d2a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Console/ExportToCsvCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ private function openFile()
162162
if (!($output = fopen($this->parameters['output'], 'w'))) {
163163
$output = fopen($this->defaultPath . $this->ext, 'w');
164164
}
165+
166+
fputs($output, "\xEF\xBB\xBF");
167+
165168
return $output;
166169
}
167170

0 commit comments

Comments
 (0)