Does not support Greek characters in remote pc

Bug #392312 reported by Dimitrios Ntoulas
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
filezilla (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I cannot upload a directory in Greek characters either create a new one.
It confuzes letters.

example
public_html/images/Οινοποιητικά
it should be
public_html/images/Οινοποιητικά

Filezilla 3.2.2.1
Compiled for i486-pc-linux-gnu with gcc(Ubuntu 4.3.3-3ubuntu5) 4.3.3 flags -g -O2 -Wall -g -fexeptions

Revision history for this message
Tim Kosse (tim-kosse) wrote :

Use of non-ASCII characters requires UTF-8 encoding. Use of any other encoding is in violation to the FTP standards, see http://wiki.filezilla-project.org/Character_Set

Do you see any warnings about invalid character sequences in the message log of FileZilla? If so your server is not UTF-8 capable.

On non-UTF8 capable servers you cannot use non-ASCII characters. In that case either refrain from using non-ASCII characters or upgrade to a proper server.

Revision history for this message
Dimitrios Ntoulas (ntoulasd) wrote :

No errors on filezilla
Απάντηση: 227 Entering Passive Mode (62,103,149,61,138,218).
Εντολή: STOR Κάνουλα ξύλινη.JPG
Απάντηση: 150 Opening BINARY mode data connection for ÊÜíïõëá îýëéíç.JPG
Απάντηση: 226 Transfer complete

Server is UTF8 capable, gftp works fine.

Revision history for this message
Tim Kosse (tim-kosse) wrote :

Please attach a complete log, from starting FileZilla to the moment the transfer fails. Snippets are useless.

Revision history for this message
Dimitrios Ntoulas (ntoulasd) wrote :
Download full text (6.1 KiB)

No errors in logs. But it mesh everything. Uploads folders and files in wrong positions and filenames isn't readable.

Κατάσταση: Σύνδεση στο xxxxxxxxxxxxxxxxxxxxx...
Κατάσταση: Σύνδεση εδραιώθηκε, αναμονή για μήνυμα υποδοχής...
Απάντηση: 220 xxxxxxxxxxxxxxxx FTP server ready
Εντολή: USER oinos
Απάντηση: 331 Password required for oinos
Εντολή: PASS ********
Απάντηση: 230 User oinos logged in
Εντολή: SYST
Απάντηση: 215 UNIX Type: L8
Εντολή: FEAT
Απάντηση: 211-Features:
Απάντηση: MDTM
Απάντηση: AUTH TLS
Απάντηση: PBSZ
Απάντηση: PROT
Απάντηση: REST STREAM
Απάντηση: SIZE
Απάντηση: 211 End
Κατάσταση: Συνδεδεμένος
Κατάσταση: Ανάκτηση λίστας φακέλου...
Εντολή: PWD
Απάντηση: 257 "/" is the current directory
Εντολή: TYPE I
Απάντηση: 200 Type set to I
Εντολή: PASV
Απάντηση: 227 Entering Passive Mode (xxxxxxxxxxxxxxxxxxxx).
Εντολή: LIST
Απάντηση: 150 Opening ASCII mode data connection for file list
Απάντηση: 226 Transfer complete
Κατάσταση: Calculating timezone offset of server...
Εντολή: MDTM .bash_logout
Απάντηση: 213 20090107114225
Κατάσταση: Timezone offsets: Server: 7200 seconds. Local: 10800 seconds. Difference: 3600 seconds.
Κατάσταση: Λίστα φακέλου επιτυχής
Κατάσταση: Ανάκτηση λίστας φακέλου...
Εντολή: CWD public_html
Απάντηση: 250 CWD command successful
Εντολή: PWD
Απάντηση: 257 "/domains/oinos-meli.gr/public_html" is the current directory
Εντολή: PASV
Απάντηση: 227 Entering Passive Mode (xxxxxxxxxxxxxxxxxxxxxxx).
Εντολή: LIST
Απάντηση: 150 Opening ASCII mode data connection for file list
Απάντηση: 226 Transfer complete
Κατάσταση: Λίστα φακέλου επιτυχής
Κατάσταση: Δημιουργία φακέλου '/domains/oinos-meli.gr/public_html/νεος/'...
Εντολή: MKD νεος
Απάντηση: 257 "/domains/oinos-meli.gr/public_html/íåïò" - Directory successfully created
Κατάσταση: Ανάκτηση λίστας φακέλου...
Εντολή: CWD νεος
Απάντηση: 250 CWD command successful
Εντολή: PWD
Απάντηση: 257 "/domains/oinos-meli.gr/public_html/íåïò" is the current directory
Εντολή: PASV
Απάντηση: 227 Entering Passive Mode (xxxxxxxxxxxxxxxxxxxxxxx).
Εντολή: LIST
Απάντηση: 150 Opening ASCII mode data connection for file list
Απάντηση: 226 Transfer complete
Κατάσταση: Λίστα φακέλου επιτυχής
Κατάσταση: Σύνδεση στο xxxxxxxxxxxxxxxxxxxxxxx...
Κατάσταση: Σύνδεση εδραιώθηκε, αναμονή για μήνυμα υποδοχής...
Απάντηση: 220 xxxxxxxxxxxxxxxxxxxxxxxxxx FTP server ready
Εντολή: USER xxxxxxxxxxxxxxxxxxx
Απάντηση: 331 Password required for xxxxxxxxxxxxxxxxxxxxxx
Εντολή: PASS ********
Απάντηση: 230 User xxxxxxxxxxxxxxxxxxx logged in
Κατάσταση: Συνδεδεμένος
Κατάσταση: Εκκίνηση αποστολής του C:\Documents and Settings\user\Επιφάνεια εργασίας\οινοποιϊτικά\Οινοποιητικά είδη\Εξαεριστηράκια.JPG
Εντολή: CWD /domains/oinos-meli.gr/public_html/íåïò/
Απάντηση: 250 CWD command successful
Εντολή: PWD
Απάντηση: 257 "/domains/oinos-meli.gr/public_html/íåïò" is the current directory
Εντολή: TYPE I
Απάντηση: 200 Type set to I
Εντολή: PASV
Απάντηση: 227 Entering Passive Mode (62,103,149,61,137,97).
Εντολή: STOR Εξαεριστηράκια.JPG
Απάντηση: 150 Opening BINARY mode data connection for ÅîáåñéóôçñÜêéá.JPG
Απάντηση: 226 Transfer complete
Κατάσταση: Επιτυχής μεταφορά αρχείου
Κατάσταση: Ανάκτηση λίστας φακέλου...
Εντολή: CDUP
Απάντηση: 250 CD...

Read more...

Revision history for this message
Tim Kosse (tim-kosse) wrote :

Looks like a problem with your server.

> Εντολή: MKD νεος
> Απάντηση: 257 "/domains/oinos-meli.gr/public_html/íåïò" - Directory successfully created

íåïò is the iso8859-1 interpretation of the iso8859-7 representation of νεος

One reason this can happen is the following:
- Server uses single-byte characterset internally, most likely ISO8859-1
- Upon receiving νεος in UTF-8 the server decodes it to its single-byte character set. Since ISO8859-1 doesn't contain greek characters it simply uses the corresponding values from ISO8859-7 as replacement.
- When re-endocing the reply back into UTF-8 it interprets its internal representation according to ISO8859-1 again.

Revision history for this message
Dimitrios Ntoulas (ntoulasd) wrote :

But in gftp works just fine !

Revision history for this message
Tim Kosse (tim-kosse) wrote :

Now I see what's going wrong. Your server does not include UTF8 in its FEAT reply.

On such servers you must not use non-ASCII characters as use of any character set other than ASCII (unless explicitly negotiated through undefined means) on non-UTF8 capable (as determined by FEAT response) is against FTP specifications.

Read RFC 959 and its dependencies as well as RFC 2640.

Revision history for this message
Tim Kosse (tim-kosse) wrote :

Quote from RFC 959:
> control connection
>
> The communication path between the USER-PI and SERVER-PI for
> the exchange of commands and replies. This connection follows
> the Telnet Protocol.

Quote from RCC 854 (telnet):
> 1. When a TELNET connection is first established, each end is
> assumed to originate and terminate at a "Network Virtual Terminal",
> or NVT. An NVT is an imaginary device which provides a standard,
> network-wide, intermediate representation of a canonical terminal.
> [...]
> The code
> set is seven-bit USASCII in an eight-bit field

Quote from RFC 2640:
> 3.2 Servers compliance
>
> - Servers MUST support the UTF-8 feature in response to the FEAT
> command [RFC2389]. The UTF-8 feature is a line containing the exact
> string "UTF8".

Revision history for this message
Dimitrios Ntoulas (ntoulasd) wrote :

The server supports utf-8. I use utf-8 encoding in php files.
There is no way to use greek folders and filenames with filezilla ?

Revision history for this message
Tim Kosse (tim-kosse) wrote :

You need to upgrade to a proper server. The behavior of servers that violate the FTP specifications is undefined.

Revision history for this message
Dimitrios Ntoulas (ntoulasd) wrote :

Ok I understand. Thank you Tim.

Adrien Cunin (adri2000)
Changed in filezilla (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.