Re: Struts and arabic encoding

2007-08-13 Thread Ahmed Atif

hi,
i can't believe that the problem is solved, i tried every thing as you all
know but my last hope was to install a fresh windows and believe what after
i had installed the application worked fine with the filter class i don't
know how.
but it is done thanks all of you for helping me that was really important 
thanks again,
regards,
Ahmed
-- 
View this message in context: 
http://www.nabble.com/Struts-and-arabic-encoding-tf4251427.html#a12133955
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts and arabic encoding

2007-08-12 Thread Ahmed Atif

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts and arabic encoding

2007-08-12 Thread Ahmed Atif

hi,
i'm using the post method but i will try to use GET if this will solve the
problem
and also i have tried to the 
%@ page language=java contentType=text/html; charset=UTF-8 
pageEncoding=windows-UTF-8% 

but nothing changed 
i tried to set the HTML:FORM attributes like :

html:form acceptCharset=UTF-8 enctype=text/plain;charset=UTF-8
action=/addCategory method=post 

but as usual nothing changed i don't know really where is the prob. I tried
every thing.
any one have another idea,
some help plz,
thanks
regards,
Ahmed 
-- 
View this message in context: 
http://www.nabble.com/Struts-and-arabic-encoding-tf4251427.html#a12118734
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts and arabic encoding

2007-08-12 Thread Ahmed Atif

no, no, it was just a silly trial to test from a hopless programmer :-( 
currently i'm still searching and i think i need to install a new windows it
may fix the prob. who knows.
thanks


stoupa91devel wrote:
 
 Just a question. I saw your filter again and there is this
 request.getAttribute(cate);
 
 This gets for you only an attribut which is stored in the request scope
 (it doesnt have anything to do
 with the html forms).
 
 
 If you want get the your form text field you should use
 
 request.getParameter(cate);
 
 
 Furthermore try to look to the documentation for getParameter() method.
 I dont know what you exactly do in your app,
 but there could be a problem with request.getInputStream() or
 request.getReader() as described in the doc.
 
 Martin
 
 
 
 Ahmed Atif wrote:
 hi,
 i'm using the post method but i will try to use GET if this will solve
 the
 problem
 and also i have tried to the 
 %@ page language=java contentType=text/html; charset=UTF-8 
 pageEncoding=windows-UTF-8% 

 but nothing changed 
 i tried to set the HTML:FORM attributes like :

 html:form acceptCharset=UTF-8 enctype=text/plain;charset=UTF-8
 action=/addCategory method=post 

 but as usual nothing changed i don't know really where is the prob. I
 tried
 every thing.
 any one have another idea,
 some help plz,
 thanks
 regards,
 Ahmed 
   
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Struts-and-arabic-encoding-tf4251427.html#a12119715
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts and arabic encoding

2007-08-10 Thread Ahmed Atif

hi all,
i have a problem with my web application, when i enter an arabic text in the
text fields and trying to save it in the database or print it into the
command it appears with some strange encoding some like this  احÙ?د 
and i'm using 
the meta tag
meta http-equiv=Content-Language content=ar-eg
meta http-equiv=Content-Type content=text/html; charset=windows-1256

also

[EMAIL PROTECTED] pageEncoding=windows-1256%

but nothing happened 
please if any one know how to solve this prob.
thanks
regards,
Ahmed 
-- 
View this message in context: 
http://www.nabble.com/Struts-and-arabic-encoding-tf4251427.html#a12100026
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]