cancel
Showing results for 
Search instead for 
Did you mean: 

replace special characters

Former Member
0 Kudos

Hi All,

From my incoming message, I have to replace some characters like <b>"</b> to <i>& quot;</i> and <b>'</b> to <b>& #39;</b>. i tried to use replace string but ultimately the output has <b>'</b>, because the & is again being replaced by XI as & amp;

Is there any way to overcome this.

The characters i want to replace are <b>'</b> , <b>"</b> , <b>&</b> , <b><</b> and <b>></b>.

Thank you,

Regards,

Balaji.M

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

As expaline by bhavesh, please check , which character set you are using..

If you are using content conversion , there is a option to use escapesequence characters..in the place of begin and end separaters..

Or use XSLT mapping CDATA if you have the special chars in message..

please see the below link

http://help.sap.com/saphelp_erp2005vp/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm

http://help.sap.com/saphelp_erp2005vp/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm

Regards

Chilla..

bhavesh_kantilal
Active Contributor
0 Kudos

Balaji,

These are standard XML escape sequences and these will be escaped by Default internally as &amp; etc.

When you view the same XML in a browser they will look like you want them to look.

Also note that if you are planning to use content conversion , even content conversion will be abale to handle this.

Can you let us know why you are trying this?

Regards

Bhavesh

Former Member
0 Kudos

If you look at your Communication Channel (HTTP Adapter) you will see setting for XI Payload Manipulation and a checkbox to Mask special characters. This may be what you are after