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

Author Message
[View user's profile]

Joined: 2013-09-05
Posts: 1
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.

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26911
Location: Prague, Czechia
Your syntax looks correct. Please attach a complete session log file (set Session.SessionLogPath).
Martin Prikryl

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License