Author:
Password:

As we know, there is a function in PHP called fputcsv that can transfer array into CSV line.

However, if you make a CSV file only with these CSV lines, containing UTF8 characters, the generated CSV file will became a chaos in Excel.

 

Solution example:

$fp = fopen("php://temp", 'r+');
fprintf($fp, c
Tag:
PHP
Excel
UTF8
1 reply / 919 views.
Reply
View the latest 5 entries.