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: enable UTF-8 for remote server copy with .NET Assmbly in SCP

WinSCP does not support UTF-8 with SCP.
https://winscp.net/eng/docs/faq_utf8

Edit 2021: UTF-8 with SCP is supported now, see the link above.
sqlguy

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 -