on 11-07-2008 2:15 PM
Hi,
I have the following scenario: JDBC <-> XI <-> HTTP.
Target system uses encoding ISO-8859-1. I used an XSLT mapping to convert from UTF-8 to ISO-8859-1, but I get the following error:
PLAINHTTP_ADAPTER>ATTRIBUTE_CONV_STRING
Code page conversion error Codepage Conversion from code page UTF-8 to system code page
Anyone has an idea which one is the problem?
Thanks & Best regards,
Viviana
Hi Viviana
Where exactly you are checking for this error. Provide more details of this error.
Code given above can change the message to ISO-8859-1 without any error.
As per my understanding of your scenario. You need to convert to ISO for target and what about the response message. If you need to change response message back to UTF-8 change the code above accordingly..
That should be able to solve the problem
Thanks
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Viviana,
I'm not sure about the JDBC side, but this works for me when using the HTTP adapter.
<?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>
One thing to check would be the "XML Code" specified in the http receiver configuration. Setting this value to ISO-8859-1 will cause the content-type http header to change from this: content-type: text/xml; charset=UTF-8 to this: content-type: text/xml; charset=ISO-8859-1. The receiving http server may be reading this http header.
-Russ
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.