The app basically works like this:
1) The user uploads a CSV file.
2) The file is catched by PHP via POST.
3) I open the file with fopen()
and read the file with fgetcsv()
.
The first column it always have the \ufeff
char. I know that is called UTF-8 BOM, and it's generated by Microsoft Excel. But, when I want to remove that, I can't.
I've tried: str_replace('\ufeff', '', $columns[0]);