cancel
Showing results for 
Search instead for 
Did you mean: 

FTP of text file in unix to windows OS

Former Member
0 Kudos

Hello,

While doing FTP of the text file generated from XI(outbound/filename.txt) to windows, some new character([]-rectangle) is getting added to the new line character in the text file. This character is not seen if the same text file is viewed in unix directory. Is there any precaution to be taken in XI or in unix. Pls advise.

Regards,

Manoj

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

The problem is that DOS uses other values for newline:

Microsoft Windows / MS-DOS 0Dh 0Ah

Apple Macintosh OS 9 and earlier 0Dh

Unix (e.g., Linux), also Apple OS X and higher 0Ah

I think yuo have to take this into account and maybe make a conversion at some point. Normally FTP takes care of this automatically when you specify a ASCII transfer.

Former Member
0 Kudos

Hi Manoj,

I think you are facing this problem because it is not recognising the newline. Hence, giving you a rectangle([])instead of showing the data in a newline.

Check the parameter that you have given for endseparator in content conversion.

All normal Java related settings should work, for ex:- \t (for tab), \n (for newline) etc...

Sometimes, normal editors like notepad may not show the newlines. you can check with something like textpad, ultraedit, edit plus etc.

You can also try hexadecimal values in the endseparator:

*new line (line feed) -> hex byte: 0x0A

*return -> hex byte: 0x0D

Go through the follwing thread which discuss exactly the same issue!:-

Regards,

Sushumna

Former Member
0 Kudos

Hi Prashant,

Those parameters are already set. While dragging the file from unix to windows folder via smartFTP this problem is occuring. While viewing the same file in unix this character is not seen.

Can I have your contact number.

Regards,

A.Selvakumar

0 99 11 280 680

Former Member
0 Kudos

Hi,

If that does not work, try using ISO-8859-1 as your encoding technique in your file adapter.

cheers,

Prashanth

Former Member
0 Kudos

Hi Selva,

Go to transaction SM59 and double click on AI_RUNTIME_JCOSERVER(XI destination for adapter engine)

Inside that, under tab MDMP and Unicode, There is an option for display of conversion errors

Check if the error indicator is set to #, and that U + 0023 is also set.

cheers,

Prashanth

Former Member
0 Kudos

Hi,

Are you following any special encoding?

Please can you just put encoding utf-8 in the file adapter and see if the issue is still persisting.

Regards

Vijaya