It is working for me.

I am using Axis 1.1. 

I do following,there were some discussions that this is not the right
approach, I did agree with those discussions but in my case what I am doing
is o.k. and works, may not be the right approach for you. Please follow the
thread you mentioned in the email for more details.

In web.xml for the server have following entry:

<context-param>
    <param-name>weblogic.httpd.inputCharset./*</param-name>
    <param-value>UTF-8</param-value>
  </context-param>


In you client code have following:


        Properties pi = System.getProperties();
        pi.put("file.encoding", "UTF-8");
         System.setProperties(pi);

        In Axis call object I do 
            call.setEncodingStyle("UTF-8");

Soniya



-----Original Message-----
From: Keith Baker [mailto:[EMAIL PROTECTED] 
Sent: Παρασκευή, 14 Μαΐου 2004 10:24 πμ
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: multi language support in Axis


Did you get this fixed?  I am having a problem which seems somewhat related.
I have a WASP server Sending my Axis client UTF-8.  They work fine when the
text is just ASCII characters.  When I get UTF-8 things get all sorts of
screwed up.  Axis seems not to realize that the data is in UTF-8 when
reconstructing the strings.  The bytes are just stuffed into a string.  As
strings are in UTF-16 in Java this is not right.. 
Anyone seen this?  Is there a fix?

On Tue, 2003-11-11 at 13:34, Shah, Soniya M. wrote:
> 
> 
> I am working on a system where we have to provide support for greek 
> characters.
>  
> I was able to make the SOAP client work by setting setEncodingStyle to 
> "UTF-8" in org.apache.axis.client.Call object, but the  cannot get the 
> SOAP server working.
>  
> Does anyone know any setting I have to do in the SOAP server?  For 
> client, I have the reference to call object so could change it easily.
>  
> For server, all the details are handled by Axis, so do not know where 
> to change it.
>  
> Any information on this will be very helpful.
>  
> We have Axis deployed in WLS 8.1.
>  
> Thanks,
> Soniya
> 
-- 
-----------------------
Keith Baker
PGP Key: 0190570B --
http://math-www.uni-paderborn.de/pgpnet/pks-commands.html
Metacarta Inc.
875 Massachusetts Ave, Sixth Floor
Cambridge, MA 02139
617-661-6382 x127
-----------------------
This message may contain privileged, proprietary, and otherwise private
information. If you are not the intended recipient, please notify the sender
immediately, delete this message, and do not distribute it.
-----------------------
"If a server crashes in a server farm and no one pings it, does 
it still cost four figures to fix?"

Reply via email to