cancel
Showing results for 
Search instead for 
Did you mean: 

Add BOM in Receiver File

0 Kudos

Hi All,

I have a problem with one of my requirements. The file needs to have a BOM at the start of the file besides being UTF-8 encoded. I tried different approaches. I tried adding both  and U+FEFF in the mapping. But in the output file, in the HEX editor, they do not appear as EF BB BF I also tried the JAVA class mapping in one of the forums in SCN but it also did not work.

Is there a way to add this BOM requirement in PI?

Accepted Solutions (1)

Accepted Solutions (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

If you want to add BOM in file content it works only non XML files.create one more extra target element in Receiver data type and pass constant value BOM and if you have implemented file content conversion change accordingly

0 Kudos

Hi Raja,

Thanks very much for your reply.

What do you mean non XML files? How can I force PI not to create XML files before creating the flat file?

I will add 'BOM' in the file? Yes I implemented FCC.

rajasekhar_reddy14
Active Contributor
0 Kudos

What i understood was you want BOM in file content not file name right. then try my suggestion ,non xml means like flat files.

Answers (0)