string mb_detect_encoding ( string $str [, mixed $encoding_list = mb_detect_order() [, bool $strict = false ]] )
Detect character encoding
The detected character encoding or FALSE if the encoding cannot be detected from the given string.