I'm trying to read a CSV file generated by M$ Excel on linux.
The file has quoted multi-line (x0A separated) columns and a 0x0d0a line termination.
PHP on Linux uses 0x0a as line terminator, so all the line-based tools (file, fgets, fgetcsv) thinks there are record breaks in the middle of the data cells.
Short of processing the file byte by byte, can I temporarily change PHP's end of line character (PHP_EOL constant) so I can easily parse the file.
I think it can be done in perl with "$\". Is there something similar in PHP?
I realize I can parse byte by byte, but I'm looking for a cleaner approach.