Discuss (FTP) and (SFTP, FTPS and SCP), our Java file transfer clients.
no avatar
User

usm1031

Posts

2

Joined

Thu Feb 07, 2013 7:00 pm

ftp MVS file to Windows PC (edtFTPj) (??? char wrong)

by usm1031 » Fri Feb 08, 2013 4:55 am

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
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: ftp MVS file to Windows PC (edtFTPj) (??? char wrong)

by support2 » Fri Feb 08, 2013 4:49 pm

DataEncoding is not currently supported in edtFTPj.
no avatar
User

usm1031

Posts

2

Joined

Thu Feb 07, 2013 7:00 pm

Re: ftp MVS file to Windows PC (edtFTPj) (??? char wrong)

by usm1031 » Fri Feb 08, 2013 10:26 pm

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: ftp MVS file to Windows PC (edtFTPj) (??? char wrong)

by support2 » Fri Feb 08, 2013 11:19 pm


Who is online

Users browsing this forum: No registered users and 24 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron