Opened 13 years ago
Last modified 11 years ago
#8036 reopened Bug report
somehow show invalid UTF-8 encoded filenames
Reported by: | MIchael Seume | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | FileZilla Client |
Keywords: | ASCII, UTF-8, character set | Cc: | |
Component version: | Operating system type: | ||
Operating system version: |
Description
Files and folders with special characters in names are not displayed if you selected the ASCII character set for upload and the UTF-8 character set for Download.
Test:
- Create a file with the name ctestäöü.txt
- Set the character set in "Charset" - "Use costum charset" to "ASCII" (or use any other non UTF-8 FTP-Client).
- Upload this file to your utf-8 ftp server.
- Switch the character set in "Charset" - "Autodetect" or "Force UTF-8".
- The file will no longer dosplayed!
Change History (9)
comment:1 by , 13 years ago
comment:2 by , 12 years ago
My guess is that the created "byte-stream of characters" (filename) is not valid UTF-8 anymore. Maybe FileZilla should show a warning in such a case, but basically, nothing "sane" can be done.
comment:3 by , 12 years ago
Summary: | Unvisible folder and files in result of mixing ascii and utf-8 access → invalid UTF-8 encoding results in missing files |
---|
comment:4 by , 12 years ago
Operating system version: | MAX OS X 10.7.3 → Mac OS X 10.7.3, 10.8 |
---|
comment:5 by , 12 years ago
Resolution: | → rejected |
---|---|
Status: | new → closed |
Looks like your server is broken if it accepts and stores filenames that aren't valid UTF-8. Unfortunately nothing here we can do.
comment:6 by , 12 years ago
Operating system type: | OS X |
---|---|
Operating system version: | Mac OS X 10.7.3, 10.8 |
Priority: | blocker → low |
Resolution: | rejected |
Status: | closed → reopened |
Summary: | invalid UTF-8 encoding results in missing files → somehow show invalid UTF-8 encoded filenames |
Type: | Bug report → Feature request |
Let's assume there is an FTP server which is configured to use C locale. This means that all filenames which do not contains an embedded zero (\0) are allowed.
Further assume that different users with different FTP clients access that server.
Now assume that one of the users FTP client uses C locale as well. That user uploads a file with a filename perfectly valid for C locale, but invalid when interpreted as UTF-8.
Finally, assume FileZilla is used by a second user. FileZilla for one or another reason uses UTF-8 as character encoding. This user then browses to the directory where the first user uploaded files with valid C locale names which unfortunately are not valid UTF-8 encoding.
FileZilla seem to be unable to show that file in the filelist as it cannot create a filename representation as it fails to decode the name.
The user of FileZilla should NOT see an empty directory, as that is simply wrong. The problem should somehow be shown to the user.
1) If a filename cannot be properly interpreted using the selected character encoding, FileZilla could show a file with a name of "?" which is not selectable. The user knows that there is something more, and that the directory is not empty.
2) A warning icon could be shown somewhere telling the user that such a problem happened.
3) A popup could be shown as well.
I changed this from bug report to feature request.
comment:7 by , 12 years ago
Have a look at the utf-8 decoder. A single ascii character between f0-ff will be recognise as part of a utf-8 sequence. The following ascii character breaks the sequence with error. No character will be generate. Because the filename is a valid ascii filename you can for this case simple transform ascii to unicode in copy byte by byte. The german character Ä is ascii c4 is Unicode 00c4.
comment:8 by , 12 years ago
Resolution: | → rejected |
---|---|
Status: | reopened → closed |
According to the FTP specifications, FTP uses either 7-bit ASCII or UTF-8. Use of any other encoding requires explicit negotiation through unspecified means.
In other words, the specs don't care what happens if another encoding is used. Why should I add an insane amount of workaround for something not covered by the specs?
Just switch to a server that _enforces_ UTF-8 and be done with it.
comment:13 by , 11 years ago
Priority: | low → normal |
---|---|
Resolution: | rejected |
Status: | closed → reopened |
Type: | Feature request → Bug report |
For professional use it is recommended to view all files on server. The only way to ensure to see all files is to switch filezilla to ANSI alternative to UTF-8. Only in ANSI-mode FileZilla shows all files. Special chracters will not show correct, but all files are visible.
It is assumed that the utf-8 coder and decoder is the problem. For file system access the standard utf-8-access is correct. For access to non-standard-strings the standard utf-8-decoder is critical. The use of byte characters in range of 0xf0-0xff with non utf-8 sequencens will abort the decoding. Please use an alternative decoder to preserve these bytes instead of abort the decoding process.
Please consider that I don't have access to server configurations from others. And I could change the client software from others.
The file will no longer displayed:-)