cancel
Showing results for 
Search instead for 
Did you mean: 

Handle Trade Mark Sign in message

Former Member
0 Kudos

Hi All,

I need to send a symbol u2122

The HTML code is u201C™u201D u2122 Trade Mark Sign

ECC is sending u201C™u201D the u201C&u201D is transformed into & the at end looks like u201C™u201D

How should i handle this.

Thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

The escape sequences are necessary to distinguish XML content and control signs such as &, < and >. The escape sequences start with an ampersand (&). For example: u2018&amp;u2019 represents u2018&u2019 and u2018&gt;u2019 represents u2018>u2019.

All XI components that convert between text and XML perform the escaping and deescaping of above-mentioned characters. In some cases, an external sender of an XML message does not provide this functionality and therefore a parsing error occurs

whenever an ampersand appears in the XML document. The only solution is to use a Java mapping before the actual mapping to perform the escaping.

So you need a Java mapping.

Ref: http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42&override...

abhijitbolakhe
Advisor
Advisor
0 Kudos

Hi

Pls check the document for character encodings in PI.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79...

Regards

Abhijit

Former Member
0 Kudos

Hi,

ECC is sending u201C& #8482 ;u201D (the HTML value of trademark) the & is transformed "& amp; " into the at end looks like u201C & amp; #8482;u201D

How should handle this.

Former Member
0 Kudos

Hi All,

Can anyone please help

Thanks

former_member187339
Active Contributor
0 Kudos

Hi

>>ECC is sending u201C& #8482 ;u201D (the HTML value of trademark) the & is transformed "& amp; " into the at end looks like u201C & amp; #8482;u201D

You need to use XSLT for this. check this link

http://www.biglist.com/lists/xsl-list/archives/200101/msg00741.html

Regards

Suraj

former_member200962
Active Contributor
0 Kudos

You cannot achieve it using Message Mapping......either you use CDATA element of XSLT mapping or the JAVA mapping which is given in the blog in my first reply.

Regards,

Abhishek.

former_member200962
Active Contributor
0 Kudos

You need to handle these characters using JAVA mapping: https://weblogs.sdn.sap.com/pub/wlg/9420 [original link is broken] [original link is broken] [original link is broken]

As shown include this mapping program aboev your Message Mapping in the Interface Mapping.

Regards,

Abhishek.