struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Graham" <dgraham1...@hotmail.com>
Subject Re: RES: HTML LINK TAG
Date Tue, 13 May 2003 18:33:36 GMT
>Well, I use JSDK 1.4.1 and struts 1.1rc1......the problem is still
>happening.
>
>Why "UTF - 8" is hard-coded?

http://java.sun.com/j2se/1.4.1/docs/api/java/net/URLEncoder.html#encode(java.lang.String,

java.lang.String)

David

>
>-----Mensagem original-----
>De: David Graham [mailto:dgraham1980@hotmail.com]
>Enviada em: terça-feira, 13 de maio de 2003 14:20
>Para: struts-dev@jakarta.apache.org
>Assunto: Re: HTML LINK TAG
>
>You can easily modify the RequestUtils.encodeURL for your needs.  This
>is a
>deficiency in Java 1.3 not Struts.
>
>David
>
>
> >There is no good general workaround.  If the default encoding
> >for the JRE is 8859-1, one can patch together an ugly
> >workaround involving a String of UTF-8 bytes that will
> >fool Struts and the URL encoder.  But many JREs have a default of ASCII
> >and that will trash all the UTF-8 bytes above 0x7F by
> >converting them to question marks.
> >
> >The solution is for Struts to not use java.net.URLEncode if
> >the JRE is < 1.4, and provide its own version instead.
> >
> >     Mark
> >
> >At 09:42 AM 5/13/2003, Rob Leland wrote:
> > >Mark Abbott wrote:
> > >
> > >>A serious related issue is that for Struts under JDK 1.3.1,
> > >>it is impossible to pass any non-ASCII query param values, since
>Struts
> >in that case uses the broken URLEncoder class
> > >>in 1.3.1.  Unfortunately, there is no hook to replace or intercept
>this
> >usage in Struts because it's buried in static
> > >>utility methods.  One can't even request that the affected
> > >>html tags not do encoding so it can be done correctly externally.
> > >
> > >What work around have you been using ?
> > >
> > >>
> > >>        Mark
> > >>
> > >-Rob
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: struts-dev-help@jakarta.apache.org
> >
>
>_________________________________________________________________
>The new MSN 8: advanced junk mail protection and 2 months FREE*
>http://join.msn.com/?page=features/junkmail
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-dev-help@jakarta.apache.org
>
>
>---
>Incoming mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.445 / Virus Database: 250 - Release Date: 21/1/2003
>
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.445 / Virus Database: 250 - Release Date: 21/1/2003
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-dev-help@jakarta.apache.org
>

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org


Mime
View raw message