i have 2 SP 2010 enviroments (Dev and prd)... in a certain webpart i get the value of "param1" in the query string, like: string param1String = Request.QueryString["param1"]
if i pass this url: http:// NameOfServer/myPage?param1=hello world
everthing works fine everywhere... in dev and prd param1String will be "hello world"
now... if i pass this: http:// NameOfServer/myPage?param1=Henry Caçado
(note the 'ç') param1String in the dev enviroment will be 'Henry Caçado' BUT IN !!!PRD!!! it will be 'Henry Ca¶ado' (or some other special char)... ive tried everything... i could not find any solution that works... Ive tryed HttpUtility.UrlEnconde/Decode... SPEncoding.URLEncode/Decode... ive even wrote a Javascript that dynamically set the url...
note that if i encode on the whitespaces " "->"%20" it works fine... but if i encode a special char... no game...
Edit:I just noticed if i SPEncode.UrlEncode this url
http://myServer/_layouts/newsolicitationpage.aspx?rootFolder=itens anexos/default&ForceCompetence=Declaração de Carência
i get a generic "Internet Explorer cannot display the webpage" error