Topic "Forcing UTF-8 Encoding in .Net automation"

Author Message
Santhoshkba86
[View user's profile]

Joined: 2013-09-05
Posts: 1
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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Your syntax looks correct. Please attach a complete session log file (set Session.SessionLogPath).
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License