I have Java code that connects to an FTP server and downloads files. If the file name contains Arabic letters, then it always fails to download. But if it\'s English, it dow
You may need to use UTF-8 encoding. First thing to try is to call FTPClient.setAutodetectUTF8:
ftpClient.setAutodetectUTF8(true);
(call that before connecting)
That should fix the problem your question is about.
Once you resolve the file name issue, you will need to fix transfer mode issue. You are transferring binary files (PDF) in text mode.
You need to use binary mode:
ftpClient.setFileType(FTP.BINARY_FILE_TYPE);