PHP. Руководство по PHP. 2005
mb_detect_encoding
mb_detect_encoding
Description
string mb_detect_encoding (string str [, mixed encoding_list [, bool strict]])mb_detect_encoding() detects character encoding in string str. It returns detected character encoding.
encoding_list is list of character encoding. Encoding order may be specified by array or comma separated list string.
If encoding_list is omitted, detect_order is used.
See also mb_detect_order().
mb_decode_numericentity
mb_detect_order