ASCII files being uploaded incorrectly

Posts: 1
Joined: Sat Sep 24, 2011 8:35 am

ASCII files being uploaded incorrectly

Post by JamesChurchard » Sat Sep 24, 2011 8:41 am


I am working on a website where I was using PHP's GD library to generate images. However, whenever I saved the script using the built-in editor the page would show up blank - no errors from PHP were output. Uploading the script using a different FTP client caused the script to perform normally.

I have had issues like this in the past, and I suspect that SmartFTP is uploading the file using UTF-8 encoding, despite me having disabled that. (Transfer -> Code Page)

Is this some kind of bug, or is there another thing I need to do when uploading these type of files?

Posts: 12029
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)

Re: ASCII files being uploaded incorrectly

Post by mb » Sat Sep 24, 2011 4:25 pm

Upload the files in binary mode. The Transfer -> Code Page has no effect on how files are transferred.