Last active
April 28, 2020 13:59
-
-
Save Kcko/9252443 to your computer and use it in GitHub Desktop.
Convert UTF - win1250 - CSV
This file contains 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
<?php | |
$out = iconv('utf-8', 'windows-1250//TRANSLIT', $out); | |
$filename = 'katalog-export___' . date('YmdHis') . '.csv'; | |
header('Content-Encoding: windows-1250'); | |
header('Content-type: text/csv; charset=windows-1250'); | |
header('Content-Disposition: attachment; filename=' . $filename); | |
//echo "\xEF\xBB\xBF"; // UTF-8 BOM | |
echo $out; | |
exit(0); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment