Hello Using the PhpOffice (PhpSpreadsheet) library PhpOffice (PhpSpreadsheet) , I PhpOffice (PhpSpreadsheet) data to a csv file. Problem: instead of Cyrillic, "krakozyabry" are displayed in the generated file. mb_detect_encoding indicates that this data is in ASCII , but mb_convert_encoding($my_str, "ASCII", "UTF-8")) does not help, only the "curving" format changes. csv file settings:
header('Content-Encoding: UTF-8'); header('Content-type: text/csv; charset=UTF-8'); header('Content-Disposition: attachment; filename=Customers_Export.csv'); header('Pragma: no-cache'); header('Expires: 0'); Tell me which way to dig. thank