Alternatively, add a checkbox giving you the option to strip the BOM from UTF-8 files.
How to reproduce:
1. Open Windows NotePad, and enter this perl script:
print "Hello, world!\n";
2. Save As mytest.pl, selecting an encoding of UTF-8.
3. Use WinSCP to transfer the file to a Unix box, with permissions rwxr-xr-x.
4. Try to run the program on the Unix box with
In my case, we are transferring gettext po files between platforms, but the essential problem is the same. I will also submit a request that the gettext tools add support for BOMs, but still I think it would be a useful option to have in WinSCP since so many Unix programs don't support BOMs (and often they refuse to add support).