
April 6th, 2012, 12:09 PM
|
|
Registered User
|
|
Join Date: Apr 2012
Posts: 3
Time spent in forums: 2 h 18 m 44 sec
Reputation Power: 0
|
|
Right-Click -> Save-As causing corrupt(?) file
[editing to clarify]
I am generating a csv file with PHP with a .txt extension on a CentOS server.
If I FTP this file down using either ASCII or Binary mode, it works fine. If I right-click and Save As from my browser (happens in IE and Firefox), it blows up my merge document (Word 2007).
The good file and the bad one are exactly the same size. I've done a byte by byte value comparison and the files are identical. To make the bad file good, all I have to do is open it in GVim and save it. Saving it in Notepad does not make it good.
I'm baffled as to what is wrong with this file when downloading through the browser that is not wrong when using FTP. It does not appear to be an end-of-lines problem as I have tried a number of combinations.
Any ideas?
|