FileZilla Server, unicode, cp1251 and Russian letters

    Many of us use the wonderful FileZilla Server FTP server . I think that I was not the only one who encountered the problem of incorrect display of Russian letters in the file lists from this server in FTP clients that do not support UTF-8 (which include Far 's built-in FTP client and windows built-in client command line). I’ll tell you how to solve this problem. But first, a short background.





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

    There are two solutions.

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

    The second is universal. You need to install the patched version of FileZilla, in which UTF-8 mode is disabled by default.
    For this:
    1. Download the original FileZilla Server from here:
      filezilla-project.org
    2. Install
    3. We go to the control panel-administration-services, 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 the file )
    5. We get FileZilla server.exe from the archive and put it in the server installation folder (usually it is C: \ Program Files \ FileZilla Server)
    6. Go to the control panel, administer services, and start the FileZilla Server service
    That's it, now by default there will be no problems with encoding when entering the server - it will work in the system encoding (i.e. cp1251).

    UPD: Far manager version 2.0 supports UTF-8 in the FTP client, so the described tricks lose their relevance.


    Also popular now: