Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 7628 invoked from network); 31 Jan 2007 14:54:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Jan 2007 14:54:44 -0000 Received: (qmail 65988 invoked by uid 500); 31 Jan 2007 14:54:35 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 65898 invoked by uid 500); 31 Jan 2007 14:54:35 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 65835 invoked by uid 99); 31 Jan 2007 14:54:35 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jan 2007 06:54:34 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jan 2007 06:54:27 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 69B017142E2 for ; Wed, 31 Jan 2007 06:54:06 -0800 (PST) Message-ID: <3690366.1170255246430.JavaMail.jira@brutus> Date: Wed, 31 Jan 2007 06:54:06 -0800 (PST) From: "Davanum Srinivas (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Updated: (AXIS2-1575) Axis2 does not decodes SOAP responses using the character encoding set on the response's XML declaration. Problem converting from iso-8859-1 to utf-8. In-Reply-To: <537135.1162392654375.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-1575?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Davanum Srinivas updated AXIS2-1575: ------------------------------------ Assignee: Deepal Jayasinghe > Axis2 does not decodes SOAP responses using the character encoding set on= the response's XML declaration. Problem converting from iso-8859-1 to utf-= 8. > -------------------------------------------------------------------------= ---------------------------------------------------------------------------= -- > > Key: AXIS2-1575 > URL: https://issues.apache.org/jira/browse/AXIS2-1575 > Project: Axis 2.0 (Axis2) > Issue Type: Improvement > Affects Versions: 1.0 > Environment: Windows XP + java 1.5 + axis2 1.0. I'm using client-= side axis2 code. no server-side axis is involved. > Reporter: Bruno Negrao > Assigned To: Deepal Jayasinghe > > My SOAP server (it isn't axis2 based) sends SOAP responses like this one = shown at the end of this message. > The soap server does not set the 'Content-type' http header as was expect= ed so it's not possible to get the charset used in the response body from t= hat. > But the server defines the character encoding on the response's XML decl= aration, example:=20 > > Axis2 is ignoring the character enconding defining on the XML declaration= and is decoding all the strings sent as if they were UTF-8. > The result is I cannot display the words correctly here on the client-sid= e. The OMElement.getText() method returns crazy utf-8 characters instead of= my latin characters (like =C3=A1 =C3=B3 =C3=A7 =C3=A3 =C3=AA, etc). > I proved that axis2 uses utf-8 to decode the network inputstream when I r= an the following method on the OMElement returned as response: > response.getXMLStreamReader().getCharacterEncodingScheme() > It returns 'utf-8' and it should return 'iso-8859-1'. Not only it return= s utf-8 but it is indeed using utf-8 to decode the inputstream, what is wro= ng for this situation. > The improvement I'm asking here is update axis2 so it obey to the encodin= g definition on the response's XML declaration. > thank you, > bruno. > *************************************************************************= *************** > AN EXAMPLE OF A SOAP RESPONSE SENT FROM MY SOAP SERVER: > *************************************************************************= *************** > HTTP/1.0 200 OK > Content-length: 1269 > > =20 > =20 > =20 > 0 =20 > =20 > C =20 > lucia =20 > 177 =20 > Abric=C3=B3 Gimar=C3=A3es > =20 > =20 > =20 > > --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org