[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Open a stream file with a specific CCSID
Sender: Scott Klement <klemscot@xxxxxxxxxxxx>
That surprises me! a PDF file should already be in ASCII. Your code will
cause it to be translated to ASCII -- which will almost certainly cause
it to be corrupt.
Unless the data is currently in EBCDIC, you don't want to do it this way.
On Mon, 7 Feb 2005, Magne Kofoed wrote:
>
> the input pdf file had ccsid=1252 and this open worked great!
>
> C* Open a stream file
> c eval fd = open
> ('/tmp/testwrite.pdf':
> c O_WRONLY+O_CREAT+O_CCSID
> c +O_TEXTDATA+O_TEXT_CREAT
> c : 511: 1252: 0 )
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------