chkal/pf-issue-test — Issue #23: Query param encoding problem
Author: chkal
Created: 2012-03-06 07:17:47+00:00
State: open

Originally filed by **x3msk...@gmail.com** on 2009-11-04T22:02:52

Google Code issue: http://code.google.com/p/prettyfaces/issues/detail?id=22

When using some words specific to my language (with special characters) as
query-param I have a problem to get that param in backing bean with real
value. I get it little modified but it is a problem because I create sql
query using that param. Here is example of my url:

http://localhost:8180/Prodaja/Stan/Beograd?dis=Vračar

but when I get that param "dis" it is:

VraÄar

Param dis is binded to property of backing bean:

#{SearchBean.district}

I tried to put decode="false" but I got the same result.

Also I tried to use URLDecoder to decode value:

String decoded = URLDecoder.decode(district, "UTF-8");

but it stays the same.

And there is one interesting thing. When I use that value as part of URL
(pattern), not as query-param everything works fine:

http://localhost:8180/Prodaja/Stan/Vračar

Is there any solution for this problem, because it means to me if I can put
those values as query params?