update page now
Longhorn PHP 2026 - Call For Papers

Voting

: min(six, seven)?
(Example: nine)

The Note You're Voting On

daniel at softel dot jp
20 years ago
Note that fgetcsv() uses the system locale setting to make assumptions about character encoding.
So if you are trying to process a UTF-8 CSV file on an EUC-JP server (for example),
you will need to do something like this before you call fgetcsv():

setlocale(LC_ALL, 'ja_JP.UTF8');

[Also not that setlocale() doesn't *permanently* affect the system locale setting]

<< Back to user notes page

To Top