UTF . UTF-8 U + FEFF, , , - 0xef, 0xbb 0xbf - . UTF-16 . UTF-8 .
, . , .
$str = file_get_contents('file.utf8.csv');
$bom = pack("CCC", 0xef, 0xbb, 0xbf);
if (0 == strncmp($str, $bom, 3)) {
echo "BOM detected - file is UTF-8\n";
$str = substr($str, 3);
}