Forcing UTF-8 Encoding in .Net automation

Advertisement

Santhoshkba86
Joined:
Posts:
1

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: Forcing UTF-8 Encoding in .Net automation

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

Reply with quote

Advertisement

You can post new topics in this forum