KEMBAR78
Handling multibyte CSV files in PHP | ODP
Handling multibyte CSV files in PHP using fgetcsv() and setlocale() By Daniel Rhodes of Warp Asylum ( www.warpasylum.co.uk )
fgetcsv() fgetcsv() “Gets line from file pointer and parse for CSV fields”
There is no mb_fgetcsv() !
But “Locale setting is taken into account” by fgetcsv()
Let's see what we can do...
A case study Let's say that we've got the following all on UTF-8: Mbstring.internal_encoding
Our database
Our PHP files
Our HTML output
But we need to process the following CSV file which is in EUC-JP encoding...
The CSV file
The CSV file  source
The first attempt Well, let's try to process it as we would a “normal” non-multibyte CSV file...
The first attempt
Let's try again Doing nothing clearly didn't work!

Handling multibyte CSV files in PHP