cancel
Showing results for 
Search instead for 
Did you mean: 

Adding BOM to the beginning of a file

Former Member
0 Kudos

Hi Experts,

we are sending a file to a third party using SFTP receicer CC, but the file needs to be in UTF-8 and with BOM inserted at the beginning of the file. I know how to do encoding in UTF-8, but not sure about BOM.

I Am just wondering how to achieve this?

Many thanks in advance!

Blue

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

you can try any of the blogs.

Former Member
0 Kudos

Thank you Ramkumar.

I added a mapping to one of the targets data fields as below, but it adds this BOM char to each data row, will this be ok?

Blue

RaghuVamseedhar
Active Contributor
0 Kudos

Blue,

Option 4 in the blog, will add BOM to starting of payload (not to each data row). Plaese, add the Java Mapping after your Graphical Message Mapping in Operational Mapping.

FYI.

Former Member
0 Kudos

Thank you Raghu.

I will need a service marketplace login to download and install NW studio for Java first, will request the login from the project then go from there

Answers (1)

Answers (1)

former_member186851
Active Contributor
0 Kudos

Hello Blue,

1.Import the Java code as imported archive(.jAr) file.

2.Use the same before graphical mapping in the operation mapping.

You can check the link shared by Raghu for the code.

Former Member
0 Kudos

Tthank you Raghuraman!

Yes, I will try it after I create the jar in NW studio

former_member186851
Active Contributor
0 Kudos

Sure blue. All the best..

anupam_ghosh2
Active Contributor
0 Kudos

Hi Blue,

               You can create the java mapping in eclipse rather than NWDS. For eclipse going to marketplace is not necessary.


Regards

Anupam