Page 1 of 1

FTP filenames with accented letters

Posted: 24 Sep 2009 17:28
by Efcis
Hi

I'm trying to play video files recorded on my Freebox HD (a PVR box for the French "Free" provider) thru its FTP feature with VLC. Unfortunately, the default filenames (assigned by the Freebox firmware) can have accented letters (é, è, ô, etc.) and VLC can't reach these files if so.

Code: Select all

access_ftp error: file or directory doesn't exist main error: open of `ftp://freebox@212.27.40.254/Disque%20dur/Enregistrements/France%20ô%20-%20Archipels%20-%2005-06-2009%2016h40%201h10m.ts' failed: (null)
(The URL above is given by a right click on the file with FileZilla)

I even tried to substitute the %xx code of these letters with no success : Only the %20 code is translated to a space, but - for example - %F3 (for ô) is translated to "??" - no quotes - by VLC (checked with Wireshark) and it can't find the file :

Code: Select all

access_ftp error: file or directory doesn't exist main error: open of `ftp://freebox@212.27.40.254/Disque%20dur/Enregistrements/France%20%F3%20-%20Archipels%20-%2005-06-2009%2016h40%201h10m.ts' failed: (null)
Any hint ?

Rgds

[VLC 1.0.2 WinXP]

Re: FTP filenames with accented letters

Posted: 25 Sep 2009 18:14
by VLC_help
http://www.blooberry.com/indexdot/html/ ... coding.htm
there is a char converter you can try, for URL, but I am not use if it will help. (ô was in my case %F4, not %F3)

Re: FTP filenames with accented letters

Posted: 26 Sep 2009 13:00
by Efcis
Thanks for your reply, but it doesn't help.

%F4 (mistake on my side...) in the ftp://blah... is "transcoded" in a "?" (no quotes) character by VLC in the FTP stream :

Code: Select all

230 User logged in, proceed. TYPE I 200 Command Okay. SIZE Disque dur/Enregistrements/France ? - Archipels - 05-06-2009 16h40 1h10m.ts 550 Request action not taken (file does not exist or no access). CWD Disque dur/Enregistrements/France ? - Archipels - 05-06-2009 16h40 1h10m.ts 550 Request action not taken (file does not exist or no access).
The hex dump of the stream (with Wireshark) clearly shows the 0x3F character ("?"). The strange thing being that %20 is correctly translated as a space character but not %F4.

Re: FTP filenames with accented letters

Posted: 27 Sep 2009 15:18
by VLC_help
Kick this thread up tomorrow, I try to replicate this and open ticket if needed.

Re: FTP filenames with accented letters

Posted: 19 Dec 2009 03:31
by Efcis
Up

Issue still alive in 1.0.3

Re: FTP filenames with accented letters

Posted: 19 Dec 2009 17:16
by VLC_help
trac.videolan.org/vlc/ticket/2746
I think the issue is same.

Re: FTP filenames with accented letters

Posted: 24 Aug 2010 21:32
by StephaneM
Issue still exists in 1.1.3 :-(
It has been an annoying problem for a long time (although not a show-stopper).
But I don't think it's limited to FTP. If I play music from a LAN address (ex: \\192.168.2.1\...) I have problems too.

Re: FTP filenames with accented letters

Posted: 26 Aug 2010 12:01
by Jean-Baptiste Kempf
Try 1.2.0-git

Re: FTP filenames with accented letters

Posted: 26 Aug 2010 14:27
by Efcis
Hi j-b et al.

Still broken in 1.2.0-git (20100826-0002) for the Freebox files.

Code: Select all

access_ftp info: FTP Extended passive mode disabled access_ftp error: file or directory does not exist main error: open of `ftp://freebox@xxx.xx.xx.xx/Disque%20dur/Enregistrements/France%202%20-%20Test%20èçà%20-%2026-08-2010%2013h40%2005m.ts' failed: (null)
A wireshark dump displays :

Code: Select all

220 Welcome to Freebox FTP Server. USER freebox 331 User name okay, need password. PASS anonymous@example.com 230-..Bienvenue sur le serveur FTP Freebox. 230- 230-. Vos enregistrements se trouvent dans le r.pertoire : 230- 230-.. /Disque dur/Enregistrements 230- 230-. Vous pouvez mettre vos vid.os dans le r.pertoire : 230- 230-... /Disque dur/Video 230- 230- 230 User logged in, proceed. TYPE I 200 Command Okay. SIZE Disque dur/Enregistrements/France 2 - Test ?????? - 26-08-2010 13h40 05m.ts 550 Request action not taken (file does not exist or no access). CWD Disque dur/Enregistrements/France 2 - Test ?????? - 26-08-2010 13h40 05m.ts 550 Request action not taken (file does not exist or no access).
Looks like VLC still translates accented letters (éçà) with "??" chars when accessing the Freebox FTP server, while the Freebox server uses 8-bits chars. The word "répertoire" in the dump above is coded as 72 __e9__ 70 65 72 74 6f 69 72 65 in Wireshark.

Thanks for your efforts, anyway !

Rgds

Re: FTP filenames with accented letters

Posted: 02 Sep 2010 19:45
by trok
Hello,
I have the same probleme with VLC 1.1.4. Bad luck for me !!! I didn't try to change char by %number. For information it's work on 1.0.5.

What's about 1.2.0 ?

Re: FTP filenames with accented letters

Posted: 02 Sep 2010 21:01
by trok
Well I have test 1.2.0 and I have the same bug..... :(

Qt error
Votre média d'entrée ne peut être ouvert:
VLC ne peut pas ouvrir « ftp://hd1.freebox.fr/Disque%20dur/Enreg ... 2%2001m.ts ».
Vérifiez les messages pour plus de détails.
Log messages
access_ftp info: FTP Extended passive mode disabled
access_ftp error: file or directory does not exist
main error: open of `ftp://hd1.freebox.fr/Disque%20dur/Enreg ... 2%2001m.ts' failed: (null)

Re: FTP filenames with accented letters

Posted: 02 Sep 2010 23:05
by trok
I have found this ticket on your tracker.
http://trac.videolan.org/vlc/ticket/2746

I have try all 1.1.x version and nothing work well whith accent char.
The last version that work well is 1.0.5.

Can you do something for me ?

Re: FTP filenames with accented letters

Posted: 03 Sep 2010 09:17
by trok
I have foud where to operate in VLC source code. A FIXME tag is present on the line.

File : .\modules\access\ftp.c
Line : 326
decode_URI( url->psz_path );
/* FIXME: check for UTF-8 support, otherwise only ASCII is allowed */
EnsureUTF8( url->psz_path );
RFC2640 talk about UTF-8 and said : It's hightly recommanded that ftp server support utf-8 but it's not mandatory.
http://www.faqs.org/rfcs/rfc2640.html

Can you take a look for V1.1.5 ou V1.2.0 ?