hi all,
thanks for replay
i have already built the filter class after your post but the problem
remains and here is the doFilter method
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
if (request.getCharacterEncoding() == null) {
request.setCharacterEncoding("UTF-8");
System.out.println(request.getCharacterEncoding());
System.out.println(request.getAttribute("cate"));
response.setCharacterEncoding("UTF-8");
}
chain.doFilter(request, response);
and it works fine with changing the encoding of the request but the data
read from the text field still garbled i'm saving it to the DB instantly at
a UTF-8 encoding type column but the problem remains
does any one know where the prblem might be.
thanks
regards,
Ahmed
--
View this message in context: http://www.nabble.com/Struts-and-arabic-encoding-tf4251427.html#a12116086
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
|