Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 87416 invoked from network); 14 Aug 2009 10:21:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Aug 2009 10:21:03 -0000 Received: (qmail 19747 invoked by uid 500); 14 Aug 2009 10:21:08 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 19688 invoked by uid 500); 14 Aug 2009 10:21:07 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 19679 invoked by uid 99); 14 Aug 2009 10:21:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Aug 2009 10:21:07 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of andreas.veithen@gmail.com designates 209.85.218.215 as permitted sender) Received: from [209.85.218.215] (HELO mail-bw0-f215.google.com) (209.85.218.215) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Aug 2009 10:20:58 +0000 Received: by bwz11 with SMTP id 11so1216758bwz.15 for ; Fri, 14 Aug 2009 03:20:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=Ctq9dIzWJDAZOYFhVSWzzPeYZ8agNrdvE9lKmB7kAMM=; b=s/h/Yc/E2/vsPLUlENngGNMBZJit1vMOAtnvw6BenQut/cx0Z+4h/oKDE0p6FKN2gk vI+38zJYoodNfFVov8QuiHRPfWspmxjB8Qg5KsGqhtZ6VV9daQdDv/ZfcdBi1vu8ZQvh n4zlIUHKGu0vdXCM6MxzfawJ0pt/HxLAXIDVI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=UQBVBc6LM+VS9+IsddY2o8Pmi1ivkmTmYvU9nXaqFPJYy7oDXbVcgKAvcOGpqNZYJI aEfXggl8xaALCTb60oQhdWXj9RL0F/rKXJte92nbLZGlMqfgTur/cqJK3XL5UYdN9ucS IjpZ8+38dN4hoWmuJrKMSBBII9AuOk7+BnbC0= MIME-Version: 1.0 Received: by 10.239.130.145 with SMTP id 17mr152545hbj.52.1250245238119; Fri, 14 Aug 2009 03:20:38 -0700 (PDT) In-Reply-To: <21fc4bc50908140239i19e6ef79r484778a7f569f62e@mail.gmail.com> References: <21fc4bc50908140239i19e6ef79r484778a7f569f62e@mail.gmail.com> From: Andreas Veithen Date: Fri, 14 Aug 2009 12:20:18 +0200 Message-ID: Subject: Re: [AXIS2] Control character encoding used by axis2 server for responses To: axis-user@ws.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Which version of Axis2 do you use? Andreas On Fri, Aug 14, 2009 at 11:39, Michael Fryars wrote: > Hello, > I'm seeking some advice/help with a character encoding problem with an ax= is2 > service (i.e. server side). > > When my service receives a (WS/SOAP) request with: > =A0=A0=A0=A0=A0 Content-Type: text/xml; charset=3DUTF-8 > in the HTTP header, everything works fine, any unusual charcters in the > response are correctly encoded in UTF-8. > > But when the service receives a request with: > =A0=A0=A0=A0=A0 Content-Type: text/xml; charset=3DISO-8859-1 > the response is inconsistent. The response is labelled as ISO-8859-1: > =A0=A0=A0=A0=A0 Content-Type: text/xml; charset=3DISO-8859-1 > =A0=A0=A0=A0=A0 > but in fact the message body is still encoded in UTF-8. > > Should the axis2 engine automatically select and use ISO-8859-1 encoding = for > the response? Or is it something I need to configure? Or is it always UTF= -8? > > I understood from a previous thread ("How to change Axis2 response charac= ter > encoding") that axis2 selects a a message builder based on the Content-Ty= pe > header. My axis2.xml config does not contain anything specifically for > "text/xml" : > > =A0=A0=A0 > =A0=A0=A0=A0=A0=A0=A0 > class=3D"org.apache.axis2.builder.ApplicationXMLBuilder"/> > =A0=A0=A0=A0=A0=A0=A0 > class=3D"org.apache.axis2.builder.ApplicationXMLBuilder"/> > =A0=A0=A0=A0=A0=A0=A0 > class=3D"org.apache.axis2.builder.XFormURLEncodedBuilder"/> > =A0=A0=A0=A0=A0=A0=A0 > class=3D"org.apache.axis2.builder.MultipartFormDataBuilder"/> > =A0=A0=A0 > > Is this where I need to intervene to control the response encoding? > > Thanks in advance for any help you can provide. > > Michael Fryars >