Comment 5 for bug 255895

Revision history for this message
Marc D. (koshy) wrote :

This is all documented: http://de.php.net/fgetcsv

“Note: Locale setting is taken into account by this function.”

The default locale is usually C, so Octets 0x80–0xff are undefined and therefore non-printable. Using a UTF-8 locale, your program works as expected. Just add “setlocale(LC_CTYPE, 'en_GB.UTF-8');” as the first command (you can use any UTF-8 locale; if en_GB isn’t installed, try en_US).