Bruce Dou
Bruce Dou

Reputation: 4761

How to detact the encoding using mb_detect_encoding correct?

I want to detect encoding correct, but i found mb_detect_encoding always get error result, And I added lots of encoding_list UTF8 ISO-8859-* ....

Upvotes: 2

Views: 8947

Answers (1)

sorin
sorin

Reputation: 170340

You are trying to do something that only sometimes works. Encoding detection is not a exact "science" so the best thing you can do is to avoid it.

Upvotes: 14

Related Questions