cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with UTF-8 encoding in receiver file adapter

Former Member
0 Kudos

Hi Experts,

I am working with receiver file adapter where i am using utf-8 as encoding. In the receiver FTP,file is appearing as encode in utf-8 without BOM, If i open with notepad++. The requirement is to appear the file in utf-8 not in utf-8 without BOM.

I tried mapping with BOM() as an extra field  and module parameters as suggested in other blogs.

But, still the file is appearing as encode in utf-8 without BOM. Could anone please help me.

Thanks & regards,

Raghunath B

Accepted Solutions (1)

Accepted Solutions (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Raghu,

Can you try opening your XML file using a Hex editor? The first three bytes should be EF BB BF, although this will not appear in notepad or notepad++ see example below:

Regards,

Mark

Former Member
0 Kudos

Hi Mark,

Thanks for your reply. We are placing the file in Text format not in xml.

Thanks & regards,

Raghunath B

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Experts,

I Finally achieved inserting BOM at the beginning of the file using CP1252 as encoding.

Now, the file is recognized as UTF-8. But, Special characters are not appearing properly in the receiver side. Could anyone suggest something about this..?

Thanks & regards,

Raghunath B

Former Member
0 Kudos

Hi experts,

I opened the file in hexadecimal editor and realized that BOM() is not properly converted into it's Hexadecimal value (EFBBBF). It is appearing as  in hexa decimal editor.

We are using FCC and  should appear before header line in our requirement.

So, Could you please suggest any of the below.

1. The possibility of  making BOM appearing as  instead of  in hexadecimal editor.

2. Possibility of adding hexadecimal value in the header line.

3.Any other solution.

Thanks & regards,

Raghunath B

Former Member
0 Kudos

Hi,

Go through the below link.

Regards

Venkat

Former Member
0 Kudos

Hi Venkat,

Thanks for your reply. I am facing the same issue like Thiru in the blog.

Does it means UTF-8 with BOM is not possible in PI..?

Thanks & regards,

Raghunath B

former_member184720
Active Contributor
0 Kudos

Hi Raghu - What is the file type you selected in receiver channel text/binary?

Also have a look at the below blog

Former Member
0 Kudos

Hi Hareeesh,

Thanks for your reply. File type is Text. I already checked that blog and tried with module parameters and introducing BOM in the target structure. But, Neither of the solutions helped me.

Thanks & regards,

Raghunath B