cancel
Showing results for 
Search instead for 
Did you mean: 

Restricting special characters in XML within XI..

Former Member
0 Kudos

Hi,

I am facing a situation where, special characters (e.g. Ë) are expected to be there in source message. The target system is not able to parse an XML with such characters.

Is it possible to drop all such special characters in XI using Graphical/XSLT mapping. Parsing each character in XML is not a option.

I do beleive, XI supports UTF-8 encoding, which is also been supported by the target system, but I'm not able to figure out why the message was parsed in XI, but not in the target system.

Kind Regards,

Rahul

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Thanks for your suggestions,

But, the target system is fixed and I can't change the supported encoding.

Former Member
0 Kudos

The scenario is pretty simple... IDoc --> XI --> JMS queue --> SystemB.

In between XSLT program used to map IDoc to SBDH message.

I hope that helps...

former_member206604
Active Contributor
0 Kudos

Hi,

Then use the encoding format "IS0 8859-1" mentioned by Bhavesh that should work.

One more thing if you are using this encoding format there might be some special characted to be encoded like if there is an "&" character in the data you need to replace it with "&".

Prakash

Message was edited by: Prakash Arunachalam

former_member206604
Active Contributor
0 Kudos

Are u using File adapter? Can you please explain me in detail what kind of scenario you are working on?

You can try with some encoding formats like ISO...

or

try to set the

File Type : Binary. This will work...

Message was edited by: Prakash Arunachalam

bhavesh_kantilal
Active Contributor
0 Kudos

Rahul,

Even we faced this issue in our interfaces and I found that UTF - 8 does support these characters.

Anyways, I would suggets that you also try changing the encoding scheme to "IS0 8859-1". it supports latin characters.

Regards,

Bhavesh

Former Member
0 Kudos

Hi Bhavesh,

Even we faced this issue in our interfaces and I found that UTF - 8 does support these characters.Anyways, I would suggets that you also try changing the encoding scheme to "IS0 8859-1". it supports latin characters.

<b>I am doing IDOC-To-File scenario..the data is coming from IDOC some special characters. those special characters it is failing at mapping stage.

Because my xml header looks like <?xml version="1.0" encoding="UTF-8"?>

UTF-8 is not able to convert special characters..if i change header to

<?xml version="1.0" encoding="ISO-8859-1"?>

it is converting special characters.

How do i do that..do i write any mapping program in R/3 or XI to conver UTF-8 to ISO-8859-1</b>

Bydefault in XI header area it is coming <?xml version="1.0" encoding="UTF-8"?> .

Please can you help me any body to converting special characters.

Regards,

Venu.