mb_detect_encoding doesn't properly working with Windows-1250 (CP1250)
问题 I have problem with detecting CP1250 in mb_detect_encoding(), in my case I want detect 3 encodings: mb_detect_encoding($string, 'UTF-8,ISO-8859-2,Windows-1250') But Windows isn't in supported encodings, any solution? 回答1: mb_detect_encoding always "detects" single-byte encodings. You can read about this in the documentation for mb_detect_order: mbstring currently implements the following encoding detection filters. If there is an invalid byte sequence for the following encodings, encoding