cancel
Showing results for 
Search instead for 
Did you mean: 

Handling special characters in XI mapping - Blackberry Application

0 Kudos

Hi All,

We are trying to send data to a Blackberry application through a Webbservice, now the data has some special characters for e.g. Carroll s Appliance. If you see there is an arrow mark in the text, this is nothing but Hex 001A. I need to handle this in my mapping. Can you tell me how can i go about doing it in UDF, i know it's possible by using Java Mapping.

Please help.

Harpreet.

Accepted Solutions (0)

Answers (3)

Answers (3)

prasannakrishna_mynam
Contributor
0 Kudos

Hello Harpreet,

In your UDF you can use replaceAll () or replace() method of the String class. For instace strCont.replaceAll(" ","Hex 001A"), ( regarding the special character i copy pasted). It resolves the issue, here you need to replace the special characters by this way, in case your payload contains many different special characters, you need to prepare a UDF to handle all these special characters, and you can reuse it.

Regards,

Prasanna

Former Member
0 Kudos

this blog explains How to handle the Special Characters in XI

[https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420] [original link is broken] [original link is broken] [original link is broken];

this explains how to work with character encoding in sap PI 7.0

[https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42&overridelayout=true]

also check this thread [;

Former Member
0 Kudos

Hi Harpreet,

It is not possible to handle that special character inside a UDF, because inside the message mapping You need to have only valid xml's character, so You need to handle this in a javamapping...replacing or deleting...depend on you want.

Regards

Ivan