on 04-27-2006 1:55 PM
Hi All,
I hav an IDoc XML coming out of R/3 whose encoding technique is UTF-8. I hav to change it to ISO-8859-1 before parsing the xml in the java mapping program. i have seen this problem repeating among many people but i cud not find any solution on the SDN. Can any one help me out in this regard?
Thnx in Adv.
Anil
Hi Anil,
put following XSLT a first place of interface mapping:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output encoding="ISO-8859-1"/>
<xsl:template match="/">
<xsl:copy-of select="*"/>
</xsl:template>
</xsl:stylesheet>
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Udo,
I copied ur code into a notepad file and saved it as .xsl file and zipped the archive. I imported the archive into the Intg Builder and imported into the interface mapping just before my java mapping class. but when i pushed the IDoc from R/3 and opened sxmb_moni, i din't see the encoding converted to 'ISO-8859-1'. it is still reporting the same error that Commander tag(my output xml root node) is not closed. but when i remove those special charecter from my IDoc, the same is working fine. Any help Udo?
Thnx.
Anil
Hi Anil,
i'm 99% shure my mapping is also working in XI. Make a test: Copy the XML from IDoc adapter. Go to the inteface mapping in repository and delete the java mapping from it and test it there (dont activate your change list, just delete the change list after testing). How does the result look like? I assume it is latin encoded. That means, my script is ok, but you have to work at your java code. If the result is UTF-8 encoded, my script is working in XML Spy but not in XI. Then we need to look for another solution. Plz inform me about the result of your test.
Regards,
Udo
Hi,
The xsl is creating a new problem. It is inserting a space befor the XML tag in the begining and that blank space is leading to the parser exception. when i tried testing in the Intg Design, it is working properly. but when i execute the scenario, it is creating problems. Any help in this regard?
Thnx
Anil
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.