Ploetzeneder
Ploetzeneder

Reputation: 1321

Parsing UTF8 and other CSV files

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

Answers (1)

Bjoern
Bjoern

Reputation: 16304

Try this php function: mb_detect_encoding

It does what the name stands for: detecting character encoding.

Upvotes: 2

Related Questions