Topic "Directory listing problems accessing WAC server with WinSCP"

Author Message
Ruediger

Guest


I get the following error when trying to access a directory with special characters (the name contains a "@"):

Error listing directory "/"
Error decoding UTF-8 string.

I think the problem could be that the server (WAC server) and the client uses different encodings ... maybe win1252 vs. UTF-8!?

Does anybody have an idea or can I set the encoding in WinSCP somewhere?

Many thanks in advance!

Rdiger Engelberger
Advertisements
Ruediger

Guest


I currently use 3.7.1!

What I also forgot to mention is that directory listing on this server worked with a previous version (some 3.x.x ... don't know the exact version number) of WinSCP.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Since version 3.7.1 WinSCP treats filenames for protocol SFTP v4 as UTF-8 encoded, as SFTP specification requires. Either your server does not encode filenames in UTF-8 (which would be violation of the protocol) or WinSCP decodes them incorectly.

Resolution:
1) Downgrade to WinSCP 3.7 beta. This is not recommended as all versions prior 3.7.1 suffered serious security issue.
2) If you can work with Windows registry add option "SFTPMaxVersion" to respective registry key of your stored session. Set the option to 3 (decimal). You may also switch configuration to INI file, if you are more familiar with it (see Storage tab of Preferences dialog). If you need more help on this, let me know.
_________________
Martin Prikryl
Ruediger

Guest


Hi Martin,

Thanks a lot ... the additional registry option works perfect. Could imagine that WAC server doesn't use UTF-8 for encoding ... Windows software and standards ;-(

Thanks once more for your fast reply!

Greetings from Vienna!

Rdiger

P.S.: Sent a donation by Kagi.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
I have already implemented switch to optionally disable UTF-8 decoding. It will be included in the next release.

It have default value "auto" to automatically disable it for WAC server and enable it for all other servers. I may be forced to "on" when other server with the bug is found. Please let me know it such case so I can include it to the autodetection.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License