Reputation: 1321
i have CSV Files which i read by: Why does this CSV not be parsed with fgetcsv?
But now there are some,, which are UTF8 and some not,...how can i implement an "auto detection"?
Upvotes: 1
Views: 473
Reputation: 16304
Try this php function: mb_detect_encoding
It does what the name stands for: detecting character encoding.
Upvotes: 2