[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FTPAPI - CCSID
Hi Jan,
The FTP protocol does not know or understand CCSIDs. If you think
about it, that makes sense, since Windows, Unix, Mac, et al, do not use
CCSIDs... they are an IBM invention.
When you send a file via FTP, the only thing that gets transmitted is
the file name and the data stored inside the file. Everything else is
calculated by the receiving FTP server, and assigned to the file. (It's
not sent over the network.)
If your file is sent in binary mode, then the data is still CCSID 1252.
The file is just marked incorrectly because OS/400 didn't _know_ the
CCSID, and assigned a default. You can simply use CHGATR on the remote
system to set it correctly. (Though, the difference between 819 and
1252 is very small... so I'm surprised it matters to you!)
On 12/9/2010 8:42 AM, Jan Grove Vejlstrup wrote:
> I'm using FTPAPI to upload a file to a server, also an IBM i. The file
> on the client has CCSID 1252 und the resulting file on the server has
> CCSID 819.
> I've attached the little program.
> I don't see, why the resulting file has CCSID 819. Can you help me?
> Best regards
> Jan
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------