in reply to Perl Issue - File downloaded in windows has a Control M character in it??
After our troubleshooting, we found out that the file downloaded by newer version come with empty rows between data, since the .csv files came with spaces (empty rows), it is not being processed and fails.If a UNIX-newlined text file is read as DOS-newlined textfile, it looks like there is no newlines at all because DOS newline is "\r\n" when UNIX newline is just "\n".
So there is no way of empty lines appearing because of UNIX-newlined file being viewed as DOS-newlined. Can you provide a small hexdump of a damaged file?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl Issue - File downloaded in windows has a Control M character in it??
by Anonymous Monk on Oct 24, 2012 at 19:37 UTC | |
by aitap (Curate) on Oct 24, 2012 at 20:05 UTC |