I take a yml-file using file_get_contents() , I get the names of the goods from it and compare it with the data in the database. There are no coincidences.
Okay, I get the strings themselves, their length is strlen() and the mb_detect_encoding() encoding. The strings of the Vitek VT-1810 Vacuum Cleaner are the same, the encodings are also (UTF-8, it is also set in the output file, mysql, and in general wherever possible), but the length is different, 85 and 28, respectively.
$name is the name from the resulting file, $wtf is the name from the database, trim used on both lines.
strcmp('Пылесос Vitek VT-1810',$wtf)- gives 0strcmp('Пылесос Vitek VT-1810',$name)- for some reason 148.
Tried to use curl - nothing changes.