Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 26633 invoked from network); 1 Nov 2006 14:51:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Nov 2006 14:51:58 -0000 Received: (qmail 31040 invoked by uid 500); 1 Nov 2006 14:52:03 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 30996 invoked by uid 500); 1 Nov 2006 14:52:03 -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 30985 invoked by uid 99); 1 Nov 2006 14:52:03 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Nov 2006 06:52:03 -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, 01 Nov 2006 06:51:48 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5C66D714311 for ; Wed, 1 Nov 2006 06:50:54 -0800 (PST) Message-ID: <537135.1162392654375.JavaMail.root@brutus> Date: Wed, 1 Nov 2006 06:50:54 -0800 (PST) From: "Bruno Negrao (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Created: (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. 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 Axis2 does not decodes SOAP responses using the character encoding set on t= he response's XML declaration. Problem converting from iso-8859-1 to utf-8. ---------------------------------------------------------------------------= --------------------------------------------------------------------------- Key: AXIS2-1575 URL: http://issues.apache.org/jira/browse/AXIS2-1575 Project: Apache Axis 2.0 (Axis2) Issue Type: Improvement Affects Versions: 1.0 Environment: Windows XP + java 1.5 + axis2 1.0. I'm using client-s= ide axis2 code. no server-side axis is involved. Reporter: Bruno Negrao Priority: Blocker My SOAP server (it isn't axis2 based) sends SOAP responses like this one sh= own at the end of this message. The soap server does not set the 'Content-type' http header as was expected= so it's not possible to get the charset used in the response body from tha= t. But the server defines the character encoding on the response's XML declar= ation, example:=20 Axis2 is ignoring the character enconding defining on the XML declaration a= nd 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-side.= The OMElement.getText() method returns crazy utf-8 characters instead of m= y 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 ran= 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 returns = utf-8 but it is indeed using utf-8 to decode the inputstream, what is wrong= for this situation. The improvement I'm asking here is update axis2 so it obey to the encoding = 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. - If you think it was sent incorrectly contact one of the administrators: htt= p://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org