Topic "Trouble with special character in password"

Author Message
[View user's profile]

Joined: 2013-09-17
Posts: 2
Location: Deutschland

i'm trying to connect to an SFTP Server using the latest beta release (5.2.4 beta).
Connecting via WinSCP.exe works fine.
Connecting via .NET (4.0) assembly fails on password authentication.

I reflected the WindSCPnet.dll and found the issue. The SessionOptionsToOpenArguments()-Method in Session.cs UriEscapes the Password using "Uri.EscapeDataString()". The Problem is that the Uri.EscapeDataString()-method returns "%C2%A7" for the character "" instead of "%A7" which is expected.

Any ideas to force the Uri.EscapeDataString()-method to return "%A7" instead of "%C2%A7"?
Any other ideas?

Thank you.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26911
Location: Prague, Czechia
Correct approach is to make WinSCP accept URL with UTF-8 encoded characters.

I'm sending you a dev version with the change for testing.

I appreciate any feedback.
[View user's profile]

Joined: 2013-09-17
Posts: 2
Location: Deutschland
Thank you very much.
That fixed the problem. Everything works fine now.

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