Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.8k views
in Java FTP by (160 points)
Hi.
I've got the error: Unparseable date: "Jul-1-2006-04:00".
I think this has something to do with Locale settings.
It is a remote system, and I can not figure out if there is any way to see what kind of locale the server is set to.
quote syst says: 215 UNIX Type: L8 Version: SUNOS

Any one who knows how I can see this?

Best regards
Kristian

2 Answers

0 votes
by (162k points)
Are you yourself in non-English locale, e.g. German?
0 votes
by (160 points)
Are you yourself in non-English locale, e.g. German?

Yes.
But I've figuerd it out.
I used System.out.println("encode: " + ftp.getControlEncoding());
to see what language the servere is set to, and
Locale loc = new Locale("US");
loc.setDefault(Locale.US);
ftp.setParserLocale(loc);

to set the Locale.
(I couldn't just set new Locale("US") for some reason. )
Tnx

Categories

...