Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
5.8k views
in General by (120 points)
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

Please log in or register to answer this question.

Categories

...