I applied this solution to solve an encoding problem I got exporting files to .CSV and Excel and it worked successfully, but now another problem emerged:
The tabs ("\t") I use in PHP as the delimiter for Excel files stopped working. It was working before I solve the previous problem. When I open the excel file, it display likes:
"ColumnAColumbBColumnC" (all together).
If a export it like csv ('Content-type: text/csv; charset=UTF-8'
) I have success, but not as Excel (Content-type: application/vnd.ms-excel; charset=UTF-8
).
Any solution for this?
Note: using "," as a separator is not a good solution for me, because I have values with "," in some fields.