on 08-04-2014 8:28 AM
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
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>";
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Are u want to load the Payload from Java system?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.