on 10-13-2007 11:37 AM
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 & 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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.