mb_detect_encoding

Example

 string mb_detect_encoding ( string $str [, mixed $encoding_list = mb_detect_order() [, bool $strict = false ]] ) 

Description

Detect character encoding

Return Values

The detected character encoding or FALSE if the encoding cannot be detected from the given string.