FTP filenames with accented letters

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
Efcis
Blank Cone
Blank Cone
Posts: 23
Joined: 27 May 2008 16:15

FTP filenames with accented letters

Postby Efcis » 24 Sep 2009 17:28

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]

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: FTP filenames with accented letters

Postby VLC_help » 25 Sep 2009 18:14

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)

Efcis
Blank Cone
Blank Cone
Posts: 23
Joined: 27 May 2008 16:15

Re: FTP filenames with accented letters

Postby Efcis » 26 Sep 2009 13:00

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.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: FTP filenames with accented letters

Postby VLC_help » 27 Sep 2009 15:18

Kick this thread up tomorrow, I try to replicate this and open ticket if needed.

Efcis
Blank Cone
Blank Cone
Posts: 23
Joined: 27 May 2008 16:15

Re: FTP filenames with accented letters

Postby Efcis » 19 Dec 2009 03:31

Up

Issue still alive in 1.0.3

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: FTP filenames with accented letters

Postby VLC_help » 19 Dec 2009 17:16

trac.videolan.org/vlc/ticket/2746
I think the issue is same.

StephaneM
New Cone
New Cone
Posts: 2
Joined: 09 May 2010 01:32

Re: FTP filenames with accented letters

Postby StephaneM » 24 Aug 2010 21:32

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: FTP filenames with accented letters

Postby Jean-Baptiste Kempf » 26 Aug 2010 12:01

Try 1.2.0-git
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Efcis
Blank Cone
Blank Cone
Posts: 23
Joined: 27 May 2008 16:15

Re: FTP filenames with accented letters

Postby Efcis » 26 Aug 2010 14:27

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

trok
Blank Cone
Blank Cone
Posts: 70
Joined: 09 Jun 2008 22:36

Re: FTP filenames with accented letters

Postby trok » 02 Sep 2010 19:45

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 ?

trok
Blank Cone
Blank Cone
Posts: 70
Joined: 09 Jun 2008 22:36

Re: FTP filenames with accented letters

Postby trok » 02 Sep 2010 21:01

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)

trok
Blank Cone
Blank Cone
Posts: 70
Joined: 09 Jun 2008 22:36

Re: FTP filenames with accented letters

Postby trok » 02 Sep 2010 23:05

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 ?

trok
Blank Cone
Blank Cone
Posts: 70
Joined: 09 Jun 2008 22:36

Re: FTP filenames with accented letters

Postby trok » 03 Sep 2010 09:17

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 ?


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 48 guests