in reply to Convert binary to ascii while sftp using Net::SSH2

The '^M' is a control character. It is your format type. Text should be transferred ascii, things like a .gz or .zip should be transferred binary. Good Luck
  • Comment on Re: Convert binary to ascii while sftp using Net::SSH2