You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Vaibhav Arya <va...@otssolutions.com> on 2009/12/02 13:05:42 UTC

[axis2:UTF-8]

Hi All,

 

I have a web-service developed in axis2. How can I make my web-service
support UTF-8 encoding?

It is not supporting special characters ((char) 199). And replacing it with
the '?' sign.  I presume that by setting the character encoding to UTF-8,
this problem can be solved. But don't know how to set character encoding?
Can I use following.

 

               HttpServletRequest request = (HttpServletRequest)
messageContext.getProperty (HTTPConstants.MC_HTTP_SERVLETREQUEST);

 

               try{request.setCharacterEncoding("UTF-8");}catch(Exception
encex){log4jcat.info("error while setting encoding UTF-8 :" +
encex.toString());}

 

 

Please suggest.



===================================================================================================
Private, Confidential and Privileged. This e-mail and any files and attachments transmitted with it are confidential and/or privileged. They are intended solely for the use of the intended recipient. The content of this e-mail and any file or attachment transmitted with it may have been changed or altered without the consent of the author. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, circulation or Transmission of this e-mail and/or any file or attachment transmitted with it, is prohibited and may be unlawful. If you have received this e-mail or any file or attachment transmitted with it in error please notify OTS Solutions at info@otssolutions.com
===================================================================================================