csv file show error unicode code example
Example: fix excel file wrong language php
Add below row to header export excel/csv file
fputs($fp, “\xEF\xBB\xBF”);
Add below row to header export excel/csv file
fputs($fp, “\xEF\xBB\xBF”);