cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Special Characters

Former Member
0 Kudos

Hi,

I am facing a problem is with all special characters. As XI does not accept special characters , I am not able to understand , how to pass these special characters. Actually , I am working on a Idoc to http Scenario. Here the Idoc values are passing some special characters like "Muller & Co". When these values are being converted into xml .. the output cXML is showing the value as "Muller &amp CO". So What should I do in order to get my output xml value as Muller & CO. Not only for this .. I need a solution for all special characters. Can some one help me in this pls.

Thanks in Advance ,

Hemanthika

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Try using Java Mapping to remove those special characters

Use below link

Remove non UTf-8 charcatersa

ravi_raman2
Active Contributor
0 Kudos

hi,

Option 1) Try accesing it with xpath and escaping the special characters.

Option 2) Read your generated xml file and write a parser to parse it right and create a new one...with custom code(this might be easier)...

Regards

Ravi Raman

former_member189387
Active Contributor
0 Kudos

Hi ,

Please refer the following threads

Check this also

Regards.,

V.Rangarajan

Message was edited by:

ranga rajan

Former Member
0 Kudos

Hi Ranga Rajan,

Here my problem is .. the value given in XI '&' is being converted to '&amp' .. So I need to do some thing so that the out put xml is read as '&' only . This is my problem with all special characters .. Can you come up with some solution .

Thanks in advance

Hemanthika

Former Member
0 Kudos

hi Hemanthika ,

i think you are facing a enconding problem. Probably the source and destination systems are not working in the same codification.

I recommend you to ask your system administrator the encoding they are using. In Europe, the most of the systems are encoded in UFT-8, but sometimes they use other, and here is the problem.

I faced this problem time ago, i was doing and interface between two countries, one of then was using UFT-8 and the other ISO 8859-1. I solved it forcing the file adapter to work with this encoding.

If you give me more info about the adapters you are using, maybe i can help you.

Cheers.

Eduardo.

Former Member
0 Kudos

Hi Eduardo,

I am using a HTTP adapter here. I am not sure about the encoding that is being used.

Regards

Hemanthika

Former Member
0 Kudos

Hi Hemanthika ,

Having a look to the help.sap.com page, i could find the next:

Processing Business Data Using the Plain HTTP Adapter

http://help.sap.com/saphelp_nw04/helpdata/en/43/64db4daf9f30b4e10000000a11466f/frameset.htm

<i>he payload must be sent as an XML document with code page UTF-8, so that all services of the Exchange Infrastructure can process the document.</i>

and

Processing Business Data Using the Plain HTTP Adapter

http://help.sap.com/saphelp_nw04/helpdata/en/43/64db4daf9f30b4e10000000a11466f/frameset.htm

<i>The payload in the HTTP body is appended to the message as a binary document. The payload must be sent as an XML document with code page UTF-8, so that all services of the Exchange Infrastructure can process the document.

If the specified code page for the HTTP body does not correspond to the default setting UTF 8, the system converts the HTTP body to the corresponding code page; in the XML document, the system replaces the tag encoding=UTF-8 with the corresponding code page tag.</i>

Maybe the clue is in this last sentence, you must replace ( by mapping ) the encoding to UTF-8.

Nevertheless, ask your system administrator about the encoding just to make sure the used encoding is not UTF-8.

Hope this helps.

Eduardo.