Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
9.3k views
in Java FTP by (320 points)
Hello,

I'm using edtiftpj 1.5.2 for several months with different ftp server and everything was working almost fine.
Now, I have a problem with an ftp server using dirDetails.
I have browsed the forum but none of the solution worked for me. Maybe I've missed something?
Can you please help me?

Here is the error i get : Unparseable date: "juil-7-2006-10:16"
And the raw line is : drwxr-xr-x 2 edti catia 512 juil 7 10:16 folder_name

Note that i'm in France and so is the ftp server.

Thank you.

13 Answers

0 votes
by (162k points)
The solution is to set the locale to UK as you have done.

The problem is that the FTP server is sending back English names, so you need the appropriate locale to handle parsing them.
0 votes
by (140 points)
Hi @ll !

I encounter the same problems with the date. Setting the Locale to ENGLISH helps solving the problem, but is there any way to determine which locale is supported by the FTP-Server ?

My program should connect to serveral FTP-Servers which could have several different Locales set.
0 votes
by (51.6k points)
No, unfortunately there isn't a standard way to determine that. I suggest using a "rotating locale" method which tries one and then moves to the next if it doesn't work.

- Hans (EDT)

Categories

...