Trouble with special character in password

Advertisement

k3flo
Joined:
Posts:
2
Location:
Deutschland

Trouble with special character in password

Hi,

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,507
Location:
Prague, Czechia

Re: Trouble with special character in password

Correct approach is to make WinSCP accept URL with UTF-8 encoded characters.
https://winscp.net/tracker/1062

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

I appreciate any feedback.

Reply with quote

Advertisement

You can post new topics in this forum