Discuss the FTP protocol, secure FTP, FTP over SSH and FTP over SSL.

my filename is invalid

no avatar
User

mandow

Posts

1

Joined

Thu Feb 17, 2005 11:43 am

my filename is invalid

by mandow » Thu Feb 17, 2005 12:07 pm

hi

I used edtftp library in jsp files that is being on linux server , the

following code to get my files names under directory on server but the

result is ???????.rar . notice the files names are arabic names what i do

to solve the problem to get file name in arabic characters no ???????

ftp = new FTPClient(host);
FTPMessageCollector listener = new FTPMessageCollector();
ftp.setMessageListener(listener);

// login
ftp.login(user, password);

// set up passive ASCII transfers
ftp.setConnectMode(FTPConnectMode.PASV);
ftp.setType(FTPTransferType.ASCII);

// get directory and print it to console
String[] files = ftp.dir("./public_html/sher/5/8", false);

sherif

Who is online

Users browsing this forum: No registered users and 27 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron