I found the problem, I'm working on a fix. 

It happens only when you send the high bytes ( well, the URL is supposed
to have only ASCII ), and the query decoding defaults right now to UTF8.
The simple fix is to change the default to 8859_1, as required by spec,
but the right fix is to pass the detected encoding. 

Thant's for finding that.

Costin


On Mon, 18 Jun 2001, Angel Aray wrote:

> Encoding of mail messages seems to also be a problem. :(
> 
> The test data was supposed to have tildes, but outlook decided to remove
> them.
> 
> here is the encoded version:
> test+%E1%E9%ED%F3
> 
> 
> -----Original Message-----
> From: Angel Aray [mailto:[EMAIL PROTECTED]]
> Sent: Lunes, 18 de Junio de 2001 01:47 p.m.
> To: [EMAIL PROTECTED]
> Subject: RE: Decoding problems.
> 
> 
> Here is a simple example:
> 
> first a form:
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
> <body bgcolor="#FFFFFF">
> 
> <form action="echo.jsp">
> MSG: <input name="msg" type="text" size="40">
> <input type="submit">
> </form>
> </body>
> </html>
> 
> 
> second a echo.jsp to process de data.
> <%
>    String msg= request.getParameter("msg");
> %>
> <html>
> <body bgcolor="#FFFFFF">
> MSG: <%= msg %>
> </body>
> </html>
> 
> 
> test with:
> test aeiou
> 
> this will only echo the word test.
> 
> if you remove the meta tag form the html form the problem goes away.
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Lunes, 18 de Junio de 2001 12:36 p.m.
> To: 'Tomcat-Dev
> Subject: Re: Decoding problems.
> 
> 
> Can you send a URI that shows the problem ( including the special chars )?
> Are the chars encoded ( %something ) or not ? This is an important one,
> thanks for the report.
> 
> Costin
> 
> 
> 
> On Mon, 18 Jun 2001, Angel Aray wrote:
> 
> >
> > I am having problems with tomcat handlings of special characters.
> > Whenever some data is post/get that contains special characters (i.e.
> > characters with accents, tildes, etc) the request parameter gets truncated
> > up to the occurrence of the first special character.
> >
> > I would like to help and fix this bug, but I don't know where to
> > start. One thing I did try was to disable de Decode Interceptor but
> > that had no effect.
> >
> >
> > Any hints where to start looking will be appreciated.
> >
> >
> > P.S: I am using  tomcat33 out of CVS and the problem appeared recently. I
> > had an about 3 weeks old tomcat out of CVS and the problem was not there.
> I
> > hope this helps to find/solve this bug.
> >
> >
> >
> > Regards.
> >
> > Angel Aray.
> >
> 

Reply via email to