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 re
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ahmed,
Ahmed Atif wrote:
> i'm using the post method but i will try to use GET if this will solve the
> problem
No, POST is much better, since the parameters will always be encoded
using the request body's encoding, which at least has an HTTP header
You seem to be trying all the right things, my advice is to try to
isolate where things are going wrong.. for example
1) Check what encoding your browser thinks the page is in ( usually
somewhere under the view menu )
2) Check whether you are managing to read the request parameter in the
corre
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("c
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("c
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 :
but as usual
Hi,
have you tryed this too at the start of jsp?? It should set the content
type in the header of the response (not only in element of the
html page).
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="windows-UTF-8"%>
Martin
Christopher Schultz wrote:
-
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ahmed,
Ahmed Atif wrote:
> 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.
Is this with a GET or POST request?
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.getCharacte
Hi,
before you gain the parameters in a servlet you should set their
encoding (by default they are latin1).
The best way is to use a filter like this:
public class ArabicEncodingFilter implements Filter {
public void init(FilterConfig filterConfig) throws ServletException {
}
public
10 matches
Mail list logo