Created
September 4, 2015 11:09
-
-
Save akizor/2cc34595acdb9d3aa9e8 to your computer and use it in GitHub Desktop.
MacOSX fix special characters (diacritics) in PHP export xls (excel) for Magento
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fileName = 'export-casete-plastica-' . Mage::getModel('core/date')->date('Y-m-d-h-i-s') . '.xls'; | |
$content = mb_convert_encoding($content, 'UTF-16LE', 'UTF-8'); | |
$this->_prepareDownloadResponse($fileName, chr(255) . chr(254) . $content); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment