var_dump(mb_detect_encoding( '/data-alt-lite/'));
var_dump(mb_detect_encoding(iconv('cp1251', 'UTF-8', '/data-alt-lite/')));
string 'ASCII' (length=5)
string 'ASCII' (length=5)
var_dump(mb_detect_encoding( '/data-alt-lite/','UTF-8'));
var_dump(mb_detect_encoding(iconv('cp1251', 'UTF-8', '/data-alt-lite/'),'UTF-8'));
var_dump(mb_detect_encoding( 'Русские буквы'));