You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by j p <Ja...@atlas.cz> on 2003/06/21 08:50:55 UTC
Tomcat 4 and "DecodeInterceptor"
Hi,
I have problem moving my App. to tomcat 4. On TC 3.3 I used
<DecodeInterceptor .... /> feature to force cp-1250 when decoding request
data.
I've searched this in TC 4.1, but I didn't find anything with similar
functionality.
I have following problem: I have jsp page with form, which has set
contentType to
"text/html; charset=windows-1250". When I'm processing posted data on
another page,
request.getParameter() returns incorrectly decoded strings - national
characters are replaced with '?'.
Any help?
Thanks, Jan Peknik.
________________________________________________________________________________
Stydím se ho vytáhnout! A jaký je váš důvod vyměnit svůj telefon za nový?
Nokia 6610 již od 6977 Kč. http://www.atlas.cz/clickAD.asp?ad=32086
Re: Tomcat 4 and "DecodeInterceptor"
Posted by Bill Barker <wb...@wilshire.com>.
"Yoav Shapira" <yo...@yahoo.com> wrote in message
news:20030621151101.34196.qmail@web40603.mail.yahoo.com...
> Howdy,
> Your DecodeInterceptor usage covered inappropriately designed web page ;)
That's the entire point of DecodeInterceptor ;). While it does a pretty
good job of guessing the char-set, it's real power is to give a
(Tomcat-specific) way to use the functionality of
request.setCharacterEncoding (which is new in the 2.3 spec).
>
> Use a Filter to do this in tomcat 4. You'll have to write a request
charset
> setting filter as that doesn't come built-in to tomcat.
>
> Yoav Shapira
>
> --- j p <Ja...@atlas.cz> wrote:
> > Hi,
> >
> > I have problem moving my App. to tomcat 4. On TC 3.3 I used
> > <DecodeInterceptor .... /> feature to force cp-1250 when decoding
request
> > data.
> > I've searched this in TC 4.1, but I didn't find anything with similar
> > functionality.
> > I have following problem: I have jsp page with form, which has set
> > contentType to
> > "text/html; charset=windows-1250". When I'm processing posted data on
> > another page,
> > request.getParameter() returns incorrectly decoded strings - national
> > characters are replaced with '?'.
> >
> > Any help?
> >
> > Thanks, Jan Peknik.
> >
> >
>
____________________________________________________________________________
____
> > Styd�m se ho vyt�hnout! A jak� je v�s d�vod vym�nit sv�j telefon za
nov�?
> > Nokia 6610 jiz od 6977 K�. http://www.atlas.cz/clickAD.asp?ad=32086
>
>
> =====
> Yoav Shapira
> yoavs@computer.org
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Tomcat 4 and "DecodeInterceptor"
Posted by Yoav Shapira <yo...@yahoo.com>.
Howdy,
Your DecodeInterceptor usage covered inappropriately designed web page ;)
Use a Filter to do this in tomcat 4. You'll have to write a request charset
setting filter as that doesn't come built-in to tomcat.
Yoav Shapira
--- j p <Ja...@atlas.cz> wrote:
> Hi,
>
> I have problem moving my App. to tomcat 4. On TC 3.3 I used
> <DecodeInterceptor .... /> feature to force cp-1250 when decoding request
> data.
> I've searched this in TC 4.1, but I didn't find anything with similar
> functionality.
> I have following problem: I have jsp page with form, which has set
> contentType to
> "text/html; charset=windows-1250". When I'm processing posted data on
> another page,
> request.getParameter() returns incorrectly decoded strings - national
> characters are replaced with '?'.
>
> Any help?
>
> Thanks, Jan Peknik.
>
>
________________________________________________________________________________
> Styd�m se ho vyt�hnout! A jak� je v� d�vod vym�nit sv�j telefon za nov�?
> Nokia 6610 ji� od 6977 K�. http://www.atlas.cz/clickAD.asp?ad=32086
=====
Yoav Shapira
yoavs@computer.org
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org