Good day to all. Htmlspecialchars function does not work
$description = htmlspecialchars($all_array["characteristical"][$index], ENT_QUOTES, 'utf-8') ; It seems to be worth it, which would be written to the database in UTF-8, but for some reason it converts the file in utf-8 itself into windows-1251, the line in the database in utf8_general_ci