I do not disagree. But there's a little demand for such an option. Most servers either speak UTF-8 or use an Ansi encoding of their users' language.
- martin
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
Again, WinSCP does not read the information from anywhere.
OPTS UTF8 ON
in this draft and it reads that it only tunes the control connection (e.g. CWD
argument or PWD
output). I am not expert on FTP protocol, but it seems like there is no agreement how data encoding send over data connection should be treated (at least for MLSD
command output) – perhaps there is no way a server can tell a client what encoding it speaks.
But when it asks system to do the conversion, system uses the settings from Control panel→Region and Language→Administrative→Change system locale. Why do you think it's not good?
I will appreciate if the message readsServer does not send proper UTF-8, falling back to local charset CP1251
or whatever is configured for the system.
Actually I am not sure where WinSCP takes this setting from... Is this a setting for console applications which don't support Unicode (Control panel→Region and Language→Administrative→Change system locale), or location (Control panel→Region and Language→Location)? Actually IMHO both of them are not good to use...
Does this message in log file appear when i.e. when client & server agreed to send data in UTF8? Like below:
OPTS UTF8 ON
, only when it believes the server needs it to actually use UTF-8. If it is confident that the server uses UTF-8 even without that command, it won't send it.
WinSCP actually logs both raw listing and parsed listing.
Server does not send proper UTF-8, falling back to local charset
Server does not send proper UTF-8, falling back to local charset CP1251
< 2018-09-03 23:25:40.387 211-Features:
< 2018-09-03 23:25:40.398 UTF8
...
< 2018-09-03 23:25:40.409 211 End
> 2018-09-03 23:25:40.409 OPTS UTF8 ON
< 2018-09-03 23:25:40.412 200 UTF8 set to on
.Server does not send proper UTF-8, falling back to local charset
< 2018-09-03 23:12:28.394 150 Opening ASCII mode data connection for MLSD
. 2018-09-03 23:12:28.397 Session ID reused
. 2018-09-03 23:12:28.425 Data connection closed
. 2018-09-03 23:12:28.426 modify=20180903211226;perm=adfrw;size=1521103;type=file;unique=3AU1934D;UNIX.group=100;UNIX.mode=0644;UNIX.owner=1000; Белоснежка и семь гномов.jpg
< 2018-09-03 23:12:28.426 226 Transfer complete
. 2018-09-03 23:12:28.426 Directory listing successful
> 2018-09-03 23:12:58.644 PWD
< 2018-09-03 23:12:59.159 257 "/ftp/images/Белоснежкa" is the current directory