/ Published in: PHP

If you want to export some utf-8 data into csv/tsv that will be readable by excel with correct encoding you must add special non vissable characters at the begining of file
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $data = "Some utf-8 characters ąćżźćł" //these characters will make correct encoding to excel ?>
URL: http://www.php.net/manual/en/function.iconv.php#104287
Comments
