cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Encoding conversion from UTF 16LE - UTF 8 through CPI

pranav07
Product and Topic Expert
Product and Topic Expert
0 Likes
1,357

Hello Experts,


I have a requirement where we receive UTF -16E csv file from the sender and we need to convert this to UTF -8 in the receiver end .

I tried the option using Content modifier with simple Camelexpression: CamelCharsetName to UTF-8 .


File was converted to utf-8 but the output has unwanted space which causing to generate Null on empty spaces .

Any suggestion or what i am doing wrong with this conversion.

PFA screenshot of the converted UTF16Le - UTF-8 csv file output.dc3a25ef-bc09-4af6-998b-ae0b479ddc53.jpeg

Accepted Solutions (0)

Answers (1)

Answers (1)

PriyankaChak
SAP Champion
SAP Champion
0 Likes

Hi Pranav,

I think 1st you can try to read the csv file in UTF-16 format.

CamelCharsetName -> UTF-16 and before sending it to receiver set the charset encoding to UTF-8.

Regards,

Priyanka

pranav07
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi priyanka2018 ,

Thanks for your response.
I tried adding content modifier one after sender SFTP and set to UTF-16 and another one before Receiver SFTP set to UTF-8. Is that what you meant? . If so, it didnt work .

Thanks,

Pranav S

PriyankaChak
SAP Champion
SAP Champion
0 Likes

Can you share the sample UFT-16 file as attachment?