View previous topic :: View next topic
|
Author |
Message |
shahin
New User
Joined: 24 Feb 2006 Posts: 15 Location: calicut
|
|
|
|
When we ftp a file from JAVA to mainframe with the below transfer type
Use [URL] BBCode for External Links(FTPTransferType.ASCII)
the special characters (having ASCII value greater than 128) are getting changed. But when we manually do the ftp in text mode the special characters are intact. Can you pls help us. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Sounds reasonable to me. ASCII is a technical definition for a 128-character set of bits. So-called 'extended ASCII' is not standard and may be handled differently by different packages. You need to find out more about the Java API you're using -- it may not be possible to transfer characters in the range 128 to 255 without using Image transfer. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
it may not be possible to transfer characters in the range 128 to 255 without using Image transfer. |
You should not need to specify image transfer. 8-bit ascii (rather than 7-bit ascii) transfers transparently (as you have seen with the manual ftp).
As Robert suggests, you need to look at the "rules" of the Java API you are using or possibly use standard ftp, not some custom API.
Keep in mind that while the transfer "works" the ascii and ebcdic values are not the same.
Possibly there is something i misunderstand. |
|
Back to top |
|
|
shahin
New User
Joined: 24 Feb 2006 Posts: 15 Location: calicut
|
|
|
|
Thanks a lot Robert Sample and dick scherrer for the valuable information |
|
Back to top |
|
|
|