UTF-8 password ? - WeOnlyDo Discussion board

UTF-8 password ? (wodSFTP / wodSFTP.NET / wodSFTPdll)

by Termot, Thursday, March 14, 2024, 12:05 (36 days ago)

Can I use UTF-8 in the password ?
How can I set in ActiveX SFTP

UTF-8 password ?

by Jasmine, Thursday, March 14, 2024, 12:09 (36 days ago) @ Termot

Hi.

Password is already in UTF8 format sent to the server when requested. You provide it as unicode (like all strings in COM world) and then it converts to bytes using UTF8 encoding.

Regards,
Jasmine

UTF-8 password ?

by Termot, Thursday, March 14, 2024, 12:52 (36 days ago) @ Jasmine

Hi.

Password is already in UTF8 format sent to the server when requested. You provide it as unicode (like all strings in COM world) and then it converts to bytes using UTF8 encoding.

Regards,
Jasmine

Since version 2009 delphi string it is unicodestring
When I set it with special chars

var pass : UnicodeString;
begin
Pass:='ÓŁŃŚ';
SFTPClient.Password:=Pass;

I can't connect

UTF-8 password ?

by Jasmine, Thursday, March 14, 2024, 13:51 (36 days ago) @ Termot

Hi.

What version of wodSFTP are you using?

Jasmine

UTF-8 password ?

by Termot, Thursday, March 14, 2024, 13:56 (36 days ago) @ Jasmine

Hi.

What version of wodSFTP are you using?

Jasmine


3.5.5.133

UTF-8 password ?

by Jasmine, Thursday, March 14, 2024, 13:57 (36 days ago) @ Termot

Hi

That version is very old, from year 2011. I am not sure at which point we switched to UTF8, but please try latest one, I think problem should go away.

Regards,
Jasmine