on 07-02-2013 3:50 PM
Hi Experts,
I have an FTP to PI to SFTP scenario. I am getting a file with .dat extension (a flat file ) which the PI sender channel is reading in the binary format, giving it to the receiver channel.
The receiver channel is using SFTP adapter, giving some name to the file and dumping it on some location.
In the incoming file I have the junk following characters coming at the very beginning of the file
This characters are transmitted to the output file as well. Source system is not willing to do any changes to fix this. Hence I was looking to explore some possibility with encodings in PI receiver/sender channels wherein I can get rid of this characters.
On the sender side (FTP connection parameters in the sender channel) I tried
On the Source tab Transfer Mode : Binary
On the Processing tab File Type : Text and File Encoding : UTF-8
but I could not solve the problem.
Any pointers in the right direction will be highly appreciated.
Regards
Any suggestions SDNers ?
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Upendra,
You can also try using an OS command before to take the file, check this thread to skip the junk chars:
http://stackoverflow.com/questions/1068650/using-awk-to-remove-the-byte-order-mark
Regards.
Hi Upendra,
Try reading it as Text and UTF-8.
Ambrish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Why don't u ask source system to remove these junk characters (which are of no use)?
But having said that if it is a special lang characters which is getting distorted while coming into PI then u can use ISO-8859-1 encoding in the sender channel and then check.
Thanks
Amit Srivastava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.