on 09-09-2020 6:20 AM
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
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);}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.