cancel
Showing results for 
Search instead for 
Did you mean: 

encoding problems XI. 3.0

michael_spindler
Participant
0 Kudos

Hi to all,

We receive via http a XML-File UTF-8 encoded in XI (unicode system). XI does the conversion to IDOC-Orders. Through IDOC Adapter we send the ORDER to our R3 4.6C (non-unicode). To get the right encoding we use a little stylesheet for converting utf-8 to iso-8859-1.

-


<?xml version="1.0" encoding="UTF-8" ?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:java="http://xml.apache.org/xslt/java" version="1.0"> <xsl:output method="xml" encoding="ISO-8859-1" />

<xsl:template match="/">

<xsl:copy-of select="*"/>

</xsl:template>

</xsl:stylesheet>

-


When I test the mapping everything works fine. The resulting IDOC is converted in iso-8859-1. But when I send data through http I still receive utf-8 converted chars in our r3 - so it seems like the behaviour between testing and "reallife" is different.

Any ideas what to do.

Many thanks in advance.

Michael

Accepted Solutions (1)

Accepted Solutions (1)

udo_martens
Active Contributor
0 Kudos

Hi Michael,

you wrote, the mapping works fine. I think, it is the RFC-destination, used by the IDoc adapter. Have a look to note 547444 to solve your problem.

Regards,

Udo

Answers (5)

Answers (5)

michael_spindler
Participant
0 Kudos

Hi Guys,

thanks for your suggestions. Definitly the testtool from the RWB was the problem. When I send data through this, my converting efforts are ignored. After I set up the whole process and test this real-life, XI is doing what it should do.

Regards Michael

Former Member
0 Kudos

Hi Michael,

Try the option ' Ignore converting errors'. Just give it a shot

cheers,

Prashanth

P.S : Please mark all helpful answers

MichalKrawczyk
Active Contributor
0 Kudos

hi,

>>>> To get the right encoding we use a little stylesheet for converting utf-8 to iso-8859-1.

do you do it in the mapping?

I don't think this will work in the real flow

(changing the encoding inside the XI)

did you check the logs? was the encoding really changed?

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

michael_spindler
Participant
0 Kudos

Hello Prashanth,

the settings are:

Default settings: Ignore error - error indicator: #' = U+0023

Is that right or should I try the option "ignore converting errors".

Regards

Michael

Former Member
0 Kudos

Hi Michael,

Go to transaction SM59 and double click on AI_RUNTIME_JCOSERVER(XI destination for adapter engine)

Inside that, under tab MDMP and Unicode, There is an option for display of conversion errors

Check if the error indicator is set to #, and that U + 0023 is also set.

Just a hunch!

cheers,

Prashanth