[opencms-dev] Opencms link Problema with url encoding

Philippe Sevestre phil at lighthouse.com.br
Thu Dec 8 01:13:17 CET 2011


Did you try to encode the URL before passing it to sendRedirect ?

Since this is a redirect, you should use something like this:

response.sendRedirect(response.encodeRedirectURL("/someurl?param=ÁÉÍÓÚ"))


On Mon, Oct 24, 2011 at 8:22 AM, Fabio Gomes <fabio at oriens.com.br> wrote:

> **
> Hello, any suggestions, the problem can be reproduced by placing the
> scriptlet response.sendRedirect ("some url"); in some jsp page.
>
>
> []s
> Fabio Gomes
>
> Oriens Tecnologia
> +55 31 2191-8709
>
> Em 19-10-2011 16:33, Fabio Gomes escreveu:
>
>  Hi Folks, is there a way to make opencms encode the url before sending
> the redirect, when the user clicks in a opencms link ? I'm having problems
> with encoding because the link has parameters with accents, for example,
> has a url <host:port/page?paramenter=Solidário, in word "Solidário"
> appears strange character as "?", this only hapening in redirect.
>
>  I put this link in a jsp page as "response.sendRedirect()" and when was
> send, show this characters.
>
> []s
> Fabio Gomes
> Suporte Técnico
> Oriens Tecnologia
> +55 31 2191-8709
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
>
>


-- 

www.lighthouse.com.br
Philippe Sevestre (phil at lighthouse.com.br <phil at llighthouse.com.br>)
Tel.: +55 (11) 5502-3222
Cel.: +55 (11) 9735-2586
Rua Samuel Morse, 120 cj 64
04576-060 São Paulo, SP – Brasil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20111207/977816bc/attachment.htm>


More information about the opencms-dev mailing list