I tried to read a UTF-8 CSV file with fgetcsv(). On my local machine with PHP 5.3.5 it worked without any problem. On the server with PHP 5.2.4 the function kept omitting Chinese characters and instead returned empty strings. I compared the PHP configuration of both machines and adjusted the mbstring options without success. Finally, I changed the LC_CTYPE right before calling fopen(): voila. The server also speaks Chinese. ;-)
Noch kein Feedback
Formular wird geladen...