FTP: Filenames in wrong char set

Get help for specific problems
Posts: 31
Joined: 17 Jul 2019

thbenner

Hello,

when trying to fetch a directory with a file with an invalid charset from an ftp server the whole directory is skiped. Is it possible to skip just the one file?

Image
Attachments
ffs.png
ffs.png (7.28 KiB) Viewed 821 times
Posts: 31
Joined: 17 Jul 2019

thbenner

After changing the file name, I got another error message on another file:
-----------
Die Datei &quot;ftp://thomas@192.168.188.76/home/thomas/Downloads/FA Einzugsermächtigung 2023.pdf&quot; kann nicht gelesen werden.<br>
Die Zeichenkodierung konnte nicht automatisch erkannt werden: /home/thomas/Downloads/FA Einzugsermächtigung 2023.pdf
---
Translation: The character encoding could not be detected automatically
User avatar
Site Admin
Posts: 7211
Joined: 9 Dec 2007

Zenju

The server doesn't advertize itself as being UTF8-compatible, apparently.
When you run the "FEAT" command on the FTP server, what does it return?
Posts: 31
Joined: 17 Jul 2019

thbenner

I have changed the server settings, but there is still a problem:

<td>Das Verzeichnis &quot;ftp://thomas@192.168.188.76/home/thomas/Downloads&quot; kann nicht gelesen werden.<br>
Unexpected FTP response. (-rw-r--r-- 1 1000 1000 185608 Jan 28 13:27 FA Einzugserm�chtigung 2023.pdf) Ungültige Zeichenkodierung: [UTF-8] FA Einzugserm�chtigung 2023.pdf</td>

--------------------------
C:\Users\benne>ftp 192.168.188.76
Verbindung mit 192.168.188.76 wurde hergestellt.
220 (vsFTPd 3.0.3)
200 Always in UTF8 mode.
Benutzer (192.168.188.76:(none)): thomas
331 Please specify the password.
Kennwort:
230 Login successful.
ftp> FEAT
Ungültiger Befehl
ftp> FEAT
Ungültiger Befehl
ftp>

------
User avatar
Site Admin
Posts: 7211
Joined: 9 Dec 2007

Zenju

I think the syntax for the "ftp" tool is
literal FEAT
Posts: 31
Joined: 17 Jul 2019

thbenner

ftp> literal FEAT
211-Features:
UTF8
EPRT
EPSV
MDTM
PASV
REST STREAM
SIZE
TVFS
211 End
ftp>
User avatar
Site Admin
Posts: 7211
Joined: 9 Dec 2007

Zenju

ftp> literal FEAT
211-Features:
UTF8 thbenner, 26 Feb 2023, 12:05
Apparently the servers does support UTF8.
I have changed the server settings
Which settings did you change?
Posts: 31
Joined: 17 Jul 2019

thbenner

I have enabled the UTF-8 support in the config file but get still this error:

<td>Das Verzeichnis &quot;ftp://thomas@192.168.188.76/home/thomas/Downloads&quot; kann nicht gelesen werden.<br>
Unexpected FTP response. (-rw-r--r-- 1 1000 1000 185608 Jan 28 13:27 FA Einzugserm�chtigung 2023.pdf) Ungültige Zeichenkodierung: [UTF-8] FA Einzugserm�chtigung 2023.pdf</td>
User avatar
Site Admin
Posts: 7211
Joined: 9 Dec 2007

Zenju

The � character is an ANSI-encoded "ä" stored on the server, decoded as UTF8 by the client (FFS). In other words it's corrupted data from FreeFileSync's perspective. The simplest fix would be to delete the file and upload again. This time it will be correctly UTF8-encoded.
Posts: 31
Joined: 17 Jul 2019

thbenner

Is it possible to switch it to ANSI instead? Whenever a file is saved on the debian homeserver, the filename seems to be Ansi encoded.
User avatar
Site Admin
Posts: 7211
Joined: 9 Dec 2007

Zenju

Die Zeichenkodierung konnte nicht automatisch erkannt werden: /home/thomas/Downloads/FA Einzugsermächtigung 2023.pdf
---
Translation: The character encoding could not be detected automatically thbenner, 26 Feb 2023, 10:15
This issue has been fixed for the next release:
https://www.mediafire.com/file/sir094feluq2t4t/FreeFileSync_12.2_%255BBeta%255D_Windows_Setup%25282%2529.exe

Is it possible to switch it to ANSI instead? Whenever a file is saved on the debian homeserver, the filename seems to be Ansi encoded. thbenner, 26 Feb 2023, 15:05
This seems to be a bug of the FTP app that saved this file. Apparently the connection was UTF8, but the app sent the file name as ANSI instead.
Posts: 31
Joined: 17 Jul 2019

thbenner

Thank you very much!