[go: nahoru, domu]

PHP 8.4.0 Alpha 4 available for testing

Voting

: four minus one?
(Example: nine)

The Note You're Voting On

daniel at softel dot jp
18 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