Michael, Glad to be able to help!! Yes I would think Axis should be supporting UTF-8 by defualt. May be jvm it is running on affects the final result?
Soniya -----Original Message----- From: Michael Serero [mailto:[EMAIL PROTECTED] Sent: Τετάρτη, 28 Ιανουαρίου 2004 2:58 μμ To: [EMAIL PROTECTED] Subject: RE: Character encoding Soniya, You are a star! You made my day! Changing the default encoding in the JVM on both the client and server worked beautifully. I don't know if your second tip works. I am not using weblogic. Surely there must be a way to tell Axis to use the right encoding but I could not find how. After all Axis is emitting <?xml version="1.0" encoding="UTF-8"?> in the SerializationContextImpl. They should make sure the output conform to UTF-8 and ignore the default JVM file encoding. No? Michael -----Original Message----- From: Shah, Soniya M. [RA] [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 3:42 AM To: 'Axis User ' Subject: RE: Character encoding You could add following lines in your client or server code: Properties pi = System.getProperties(); pi.put("file.encoding", "UTF-8"); System.setProperties(pi); If this does not work try following: for the client side : call.setEncodingStyle("UTF-8"); for the Server side add following in your web.xml: <context-param> <param-name>weblogic.httpd.inputCharset./*</param-name> <param-value>UTF-8</param-value> </context-param> I have to support greek characters and this seems work. Not sure which one is working (did not get time to investigate), but I have all of the above and it works. I am using axis for client and server. Soniya -----Original Message----- From: Jens Schumann To: Axis User Sent: 1/28/2004 4:00 AM Subject: Re: Character encoding On 1/27/04 10:20 PM Michael Serero <[EMAIL PROTECTED]> wrote: > Nelson, > > Thanks for your reply. Do you have any suggestion on how to convert CP1252 > to UTF-8? > > I have tried something along the following lines: > > String myString = "The CP1252 string"; > Charset cs = Charset.forName("UTF-8"); > context.writeSafeString(new String(cs.encode(myString).array())); > > But it did not work for me. Since the character problem occurs on the server side, what is your client? If you use axis client side you shouldn't have problems, but you may better use a nightly snapshot. Jens