cancel
Showing results for 
Search instead for 
Did you mean: 

Special Characters in the payload

Former Member
0 Kudos

Hi,

We are receiving Payload from Source Service Provider with some special characters “ and � as shown below:

“Maintenance Documentation      Libraryâ€? under “Transformer Bushings Surveyâ€?

Those Special Characters are actually double quotes.

“Maintenance Documentation      Library” under “Transformer Bushings Survey” .

PI While reading the payload is taking it as a special character. JMS is the sender adapter we are using.

Is there any way to handle this without writing any module or Java Mapping??

Regards

Srilatha

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

If you want to load payload fro java then use like this

String payload = "<?xml version=\"1.0\" encoding=\"UTF-8\"?> " +

  "<ns0:MT_for_SQL_Request_Input xmlns:ns0=\"http://pisql.darcl.com\">" +

  "<columnName1></columnName1>" +

  "<columnName2></columnName2>" +

  "</ns0:MT_for_SQL_Request_Input>";

Former Member
0 Kudos

Hi

This type of problem mainly arise because of encoding problem. Please make sure that the JMS application is sending the proper data supported by UTF-8.

If they are sending data which is not recognized by UTF-8, then u might have to change the encoding.

iaki_vila
Active Contributor
0 Kudos

Hi Srilatha,

You can try to change the character encoding with the standard modules like this document point out: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79f...

From my own experience it is more useful to have a general java mapping to avoid this problem and to use it in all the required scenarios-

Regards.

Former Member
0 Kudos

Hi,

Are u want to load the Payload from Java system?