sftp needed to stop HTML being corrupted
It was not WinSCP 5.7 that corrupted upload of HTML to my hosting company a2hosting.com.
HTML was also corrupted on put but not get using Windows FTP to my hosting company.
I zipped the HTML file and used binary and it was not corrupted using put with Windows FTP to my hosting company but I had to ssh in to unzip the file.
I tested upload using WinSCP 5.7 on another site using sftp and HTML was not corrupted.
I then got weird port number for sftp off my hosting company and found sftp using WinSCP 5.7 to my hosting company does not corrupt HTML files any more.
So it was not WinSCP 5.7 at all. It was the protocol and the hosting company's port settings - all very devious of the hosting company which took 2 or 3 days to sort out.
HTML was also corrupted on put but not get using Windows FTP to my hosting company.
I zipped the HTML file and used binary and it was not corrupted using put with Windows FTP to my hosting company but I had to ssh in to unzip the file.
I tested upload using WinSCP 5.7 on another site using sftp and HTML was not corrupted.
I then got weird port number for sftp off my hosting company and found sftp using WinSCP 5.7 to my hosting company does not corrupt HTML files any more.
So it was not WinSCP 5.7 at all. It was the protocol and the hosting company's port settings - all very devious of the hosting company which took 2 or 3 days to sort out.