Click to See Complete Forum and Search --> : QueryString problems


pontonet
04-25-2007, 08:44 AM
Hi everybody...

I have some problems related to a querystring issue.
I`m calling an ASPX page, with some querystring parameters, from a JavaScript function, through the window.open method.

The way this URL is configured and called in the javascript function is the following: EnviarMapaEmail.aspx?type=addPt&x=-46.644203856241546&y=-23.571182563934798&st=Av.%20Paulista&nb=10&city=S%C3O%20PAULO&uf=SP&POI=

And in the ASPX page, the Request.QueryString comes this way:
type=addPt&x=-46.644203856241546&y=-23.571182563934798&st=Av.+Paulista&nb=10&city=SO+PAULO&uf=SP&POI=

The problem is: the original city name (city parameter) is 'SÃO PAULO' and it`s encoded in the URL (thought the escape() javascript function) as 'S%C3O%20PAULO', but my ASPX page only recognize'SO+PAULO' and it goes back through the Request.QueryString as 'SO PAULO'.
What`s the problem in encoding especial chars?

Any hint would be very appreciated... :]

See you!