cancel
Showing results for 
Search instead for 
Did you mean: 

BOM - Byte Order Mark Structure for Firstname, MiddleName, Lastname conversion in CPI

former_member104227
Discoverer
0 Kudos

Hi Team,

I have specific requirement to sent the file to Concur SFTP with UTF8 + BOM as the 3rd party system accepts it in the same format.

Can any one help to know as how can we handle BOM Characters in CPI.

Example of BOM character Christoph Schröder

Accepted Solutions (0)

Answers (2)

Answers (2)

ennoury
Participant
0 Kudos

Hi,

Please try this code.

def Message processData(Messagemessage){
            
        Map headerMap =message.getHeaders();
        def payload =message.getBody(java.lang.String)asString;String charset ="utf-8";byte[] BOM =[0xEF,0xBB,0xBF];String byteordermark =newString(BOM, charset);String s1 =newString(payload.decodeBase64(),charset);// payload is encoded in Base64 formatString s2 =newString(BOM,charset)+ s1;message.setBody(s2);}

former_member235395
Contributor
0 Kudos

Hi Harish,

Maybe this thread can help you to get an idea: https://answers.sap.com/questions/52480/hci---adding-byte-order-mark-bom-to-utf-8-file-con.html

I soposse Concur Consultant could help you to clarify the positions of your structure fields

Regards,