I have the problem that I do not recognize the special characters, I tried the following but it is not displayed correctly:
My header
header("Content-Type: text/html;charset=utf-8");
Column in which I want you to show me signs, strange characters, etc.
->setCellValue('G' .$i, utf8_encode($row['objetivo']));
I also tried to put it without utf8
->setCellValue('G' .$i, $row['objetivo']);
Header Finals
header('Content-Type: application/vnd.openxmlformats-
officedocument.spreadsheetml.sheet');
header('Content-Disposition: attachment;filename="Evaluaciones-'.date('Y-m-
d').'.xlsx"');
header('Cache-Control: max-age=0');