📜 ⬆️ ⬇️

FileZilla Server, unicode, cp1251 and Russian letters

Many of us use the excellent FileZilla Server FTP server. I think that I’m not the only one who faced the problem of incorrectly displaying Russian letters in file lists from this server in FTP clients that do not support UTF-8 (which also includes the built-in FTP client Far 'a and the built-in windows client command line).

I'll tell you how you can solve this problem.

But first - a short background.
')
The fact is that starting with version 0.9.15 Filezilla Server transmits Russian (and other non-English) file names in UTF-8 encoding. Although this behavior is correct from the standpoint of standards, many FTP clients as a result show unreadable characters instead of Russian file and directory names, while they work relatively well with older versions of the server. Unfortunately, server settings do not allow changing the encoding in which file lists will be given.

Two solutions.

The first is for clients that support sending an arbitrary command to the server (the same Far and ftp.exe are able to do this). After logging in to the FTP server you need to type in the console
opts utf8 off
and then re-request the file list (Ctrl + R in Far or ls (enter) in the command line client). The new list of files will come in the system default server encoding, i.e. cp1251.

The second is universal. You need to install the patched version of FileZilla, in which the UTF-8 mode is disabled by default.
For this:
  1. Download the original FileZilla Server from here:
    filezilla-project.org
  2. Install
  3. Go to the control panel, administer the service, and stop the FileZilla Server service if it is running
  4. Download the patched version of FileZilla Server from here:
    sourceforge.net/projects/filezillapv
    ( direct link to file )
  5. We take out from the archive FileZilla server.exe, and put it in the server installation folder (usually C: \ Program Files \ FileZilla Server)
  6. Go to the control panel, administer the service, and start the FileZilla Server service.
Everything, now by default there will be no problems with encoding when entering the server - it will work in system encoding (i.e. cp1251).

UPD: Far manager version 2.0 supports UTF-8 in the FTP client, so the tricks described are no longer relevant.

Source: https://habr.com/ru/post/39093/


All Articles