on 06-11-2009 5:30 AM
Dear All,
I am using FCC on sender side and the input file is in UTF-8 format....
i am using FCC with key fields on the sender file adapter...
now as the UTF-8 file was having control characters at start the keyfield was not matching the start of file and hence the first line of data was not coming in moni..
i got an answer to this query yesterday where Stefan Grube and Volker replied saying that some of the editors like notepad and word add control chars at start in UTF-8 files and hence UTF-8 files should be created only using editors like TEXTPAD .....
but the problem is that the file would always have control chars at start.. what are the ways of removing it ?
i am thinking of an adapter module at the sender side...
Edited by: Tarang Shah on Jun 11, 2009 6:31 AM
the best way would be to use a simple adapter module and remove that character.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I faced this kind of problem previously.
Have used SynTextEditor in which the hidden/special/control chars are clearly visible, delete those chars and use for input.
Alternatively, you can save the file in UTF8 format in textpad and use as input.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try to define 2 recordstructures in FCC where in the First record structure reads the first line of the source file and the second structure starts reading the source file from 2nd line.
Thanks,
Kiran
Edited by: Kiran on Jun 11, 2009 11:01 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Instead of going for Adapter module, you can simply write an OS script that would remove the control characters before processing the file.
Regards,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.