Skip to content

Commit

Permalink
Merge pull request #274 from deividas1/deividas1-utf8-filename
Browse files Browse the repository at this point in the history
Fix file not found browser error for UTF-8 filename
  • Loading branch information
kartik-v authored Oct 13, 2018
2 parents 2227908 + bef4626 commit 451e999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ExportMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ public function run()
"Invalid permissions to write to '{$this->folder}' as set in `ExportMenu::folder` property."
);
}
$file = self::slash($this->folder) . $this->filename . '.' . $config['extension'];
$file = self::slash($this->folder) . iconv("UTF-8", "ISO-8859-1//TRANSLIT", $this->filename) . '.' . $config['extension'];
$writer->save($file);
if ($this->stream) {
$this->clearOutputBuffers();
Expand Down

0 comments on commit 451e999

Please sign in to comment.