Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Forcing UTF-8 Encoding in .Net automation

Your syntax looks correct. Please attach a complete session log file (set Session.SessionLogPath).
Santhoshkba86

Forcing UTF-8 Encoding in .Net automation

Hi,
We are using Winscp 5.1.7 and SFTP-3 and we are trying to put some files with non english characters through .net Automation.

This will work if i set the UTF-8 encoding on. So i have placed the below piece of code to facilitate that. But still i'm getting cannot create file part error for that file alone.
sessionOptions.AddRawSettings("Utf", "1");

Is there any other way to acheive it? Please help.

P.S: Even through winscp tool non english charactered file names are getting transferred only when UTF-8 is set to on.

Thanks,
Santhosh