When I run a csv parser on my windows machine, and redirect the output into a file, I always get doubled up line breaks when I open the file in OpenOffice Calc. Further, if I copy the contents of the file in notepad++, then save that as a new file using the default ANSI encoding, the file is half as big and line breaks display properly in Calc.
I’d prefer not to have to add a setting or header to every file I work on, since these scripts work fine on a linux install of PHP.
I assume that changing a setting in php.ini will fix this, but I don’t know what it is and I haven’t had much luck finding it. Does anyone know how to resolve this issue?
There is an INI directive to change the character set sent by default in the
Content-Typeheader:Per example: