on 12-16-2008 1:44 PM
Hello!
I would like to change the encoding in the header of an xml message (sent to a a receiver file adapter)
from <?xml version="1.0" encoding="UTF-8" ?>
to <?xml version="1.0" encoding="ISO-8859-1" ?>
We have XI 3.0 with SP15.
Can anybody help me please?
Kind regards
Chris
Hi Chris,
An XSLT map can convert the encoding for you.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method='xml' encoding="ISO-8859-1"/>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
Thanks,
-Russ
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As Russ Suggested, it can be done through XSLT mapping or through Java mapping. but when it comes out of integration engine again it will be converted to UTF8. The best approach is to use a adapter module to do this change, so that the adatper will get the XML as UTF8 itself and in adapter you can do a simple java code to change it.
Hi Chris,
even though this is not its primary objective, the XMLAnonymizerBean module can be used to change the encoding of an XML file, using the anonymizer.encoding parameter.
Check this out: https://service.sap.com/sap/support/notes/880173
Regards,
Henrique.
User | Count |
---|---|
84 | |
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.