Hello together
I try to transfer a file from a MVS Host to a Windows PC. I use the FTPClient.setControlEncoding("windows-1252"); statement to get the right Codes for
? ? ? special characters. But I always get the wrong Codes in the PC File for certain characters (?, ?, ?).
FTPClient ftp = new FTPClient();
ftp.setControlEncoding("windows-1252")
ftp.setRemoteHost(host);
ftp.setRemotePort(21);
ftp.connect();
ftp.login(username, password);
ftp.chdir(file_directory);
ftp.setType(FTPTransferType.ASCII);
ftp.get(filenamein, filenamein);
MVS: ? = hex'CC'
MVS: ? = hex'DC'
which is Codepape IBM500 on the Host
after transfer, in the PC File the hex code for '?' is hex'BE' instead of hex'F6', hexcode for '?' is hex'F5' instead of hex'FC'
Is it possible to set DataEncoding instead of setControlEncoding for edtFTPj like in the .net ftp.
any ideas ?
thanks in advance