enable UTF-8 for remote server copy with .NET Assmbly in SCP

Advertisement

sqlguy
Joined:
Posts:
2

enable UTF-8 for remote server copy with .NET Assmbly in SCP

We have downloaded the Portable executable & .NET assembly/COM library for version 5.0.7. Since I need to copy UTF-8 formatted files I was looking for a way to set UTF-8 filename encoding to "On" (as I do for the WinSCP executable, manually) via script. An example of code where I would like to set this is below.

(From MS 2005 SSIS dts package script)
With options
.Protocol = Protocol.Sftp
.HostName = Dts.Variables("My_WinSCP_Host").Value.ToString()
.UserName = Dts.Variables("My_WinSCP_User").Value.ToString()
.....etc
(looking at this point for an variable to set UTF-8 filename encoding to "On")

A sample solution would be something like .UTF8Encoding = "On" but the dll doesn't suggest a likely parameter.

Or is this possible using SCP?

For other non-UTF-8 copies this is working great!

Thanks in advance -

Reply with quote

Advertisement

yut
Guest

Re: enable UTF-8 for remote server copy with .NET Assmbly in SCP

martin wrote:

WinSCP does not support UTF-8 with SCP.
Look here, please. Does it work?

Reply with quote

sqlguy
Joined:
Posts:
2

UTF-8 and SCP

Thanks for the quick response and letting me know, Martin. This weekend I built an alternative approach and began testing it yesterday.

Reply with quote

Advertisement

You can post new topics in this forum