on 08-19-2009 3:29 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.