Networking
1828631 Members
9588 Online
109983 Solutions
New Discussion

cannot transfer CSV Files from linux to windows correctly

 
SOLVED
Go to solution
Victor BERRIDGE
Honored Contributor

Re: cannot transfer CSV Files from linux to windows correctly

Hi chris I dont believe it has something to do with ebcdic but if you want to try for fun its dd conv=ebcdic...
There is one thing we havent tried yet, its the option tenex with ftp:
230 User vbe logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> tenex
200 Type set to L (byte size 8).
ftp>

What does this give you?

All the best
Victor
Antoniov.
Honored Contributor

Re: cannot transfer CSV Files from linux to windows correctly

Chris,
reading your post about file before (on IBM) and after (on Windows) I guess you have not problem from EBCDIC and ISO, because first line is the same.
I guess different character is ISO_LATIN1 (on unix/linux box) and PC* on Windows.
For best solution, you could prepare on IBM a simple file with one line and with only letters, number and no any other (no accented letters, so symbols, etc).
Then you could post the 2 files (before and after): if I see right there are no difference.
Then you can make another file with a symbol (for example accented vowel) and repeat the compare.
Also, when you import into Excel, you must choice ANSI source format instead windows format.

Antonio Vigliotti
Antonio Maria Vigliotti
Victor BERRIDGE
Honored Contributor

Re: cannot transfer CSV Files from linux to windows correctly

Chirs,
Since when you have fiddled your linux and it worked then after reboot it messed up again I wonder if the solution is not in your env: try setting the choice of a charset in hpux I would do:
export LC_ALL=C.iso88591

Here is some info from reflection ftp client:
The FTP Client can translate between the client and the server character sets, so using characters that exist in both sets preserves the most characters. There are two basic issues for deciding if the FTP Client should translate between the server and client character set:

· The source of the characters.

· The destination for the characters.

The need to translate characters is dictated by differences between the character set used by the source and the character set used at the destination. In most situations, no translation is necessary:

· If both client and server use the DOS character set, no translation is necessary.

· If the client uses the Windows character set and the server uses the ISO-Latin-1 character set, no translation is necessary.

(c) 1998-2004 WRQ, Inc.

This may answer to your question "what does xftp do more"... (checks for char-set compatibilies ?...)

I believe the locale I gave you is ISO-Latin-1 equivalent but Im no specialist

Kind regards