Link to home
Start Free TrialLog in
Avatar of matrix0511
matrix0511

asked on

How can I use Filezilla to open Unix files without adding bad characters?

Im trying to use Filezilla to open and edit Unix files. My default editor is Wordpad. But what we have found is whenever I open a file using filezilla...save it. When we go to view the file via command line...using "vi"...we see all these weird characters that were added by the Filezilla editor somehow and it then messes up the entire file makes it unusable.

But I"m someone who is very comfortable opening and editing files from command line. I would prefer to use GUI like Filezilla. Can you tell me how to setup Filezilla so that when I edit and view files it won't mess up the format and throw those weird characters? Even if it means having to use a different Unix GUI tool.

Let me know.

Thanks!
Avatar of Papertrip
Papertrip
Flag of United States of America image

To fix this on the Filezilla side, change the transfer mode for all downloads to binary.

To fix this on the Linux side, you can install 'dos2unix' and use that to strip the extra carriage returns / line feeds.
Avatar of Dave Baldwin
First, do Not use Wordpad for plain text, RTF is it's main format which will corrupt plain text.  I recommend PSPad http://www.pspad.com/ which will recognize the correct format and line endings and not add anything it shouldn't.
Avatar of matrix0511
matrix0511

ASKER

@DaveBaldwin, how do I use pspad with Filezilla??
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Apologies matrix, I misread your question.