special character in web link
-
How can I make the Response.Redirect() method or something inside that methode not change the special character in the link. here is my code:
string strURL = "http://www.myweb.com/doThatThing.aspx?run=th&rp=Y”Ê" Response.Redirect(strURL, false);
Unfortunately it somhow changes the special characters so it ends up likhttp://www.myweb.com/doThatThing.aspx?run=th&rp=Y”Ê€
so the last part is changed from Y”Ê to Y%e2%80%9d%02%c3%8a%e2%82%ac I'm not exacty shore where the text is change. Any sugesstion? Maby I can change the parameter back from Y%e2%80%9d%02%c3%8a%e2%82%ac to Y”Ê ? Thanks Thomas
-
How can I make the Response.Redirect() method or something inside that methode not change the special character in the link. here is my code:
string strURL = "http://www.myweb.com/doThatThing.aspx?run=th&rp=Y”Ê" Response.Redirect(strURL, false);
Unfortunately it somhow changes the special characters so it ends up likhttp://www.myweb.com/doThatThing.aspx?run=th&rp=Y”Ê€
so the last part is changed from Y”Ê to Y%e2%80%9d%02%c3%8a%e2%82%ac I'm not exacty shore where the text is change. Any sugesstion? Maby I can change the parameter back from Y%e2%80%9d%02%c3%8a%e2%82%ac to Y”Ê ? Thanks Thomas
Try using the unicode escape for the characters you want.
Need custom software developed? I do C# development and consulting all over the United States. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane
-
How can I make the Response.Redirect() method or something inside that methode not change the special character in the link. here is my code:
string strURL = "http://www.myweb.com/doThatThing.aspx?run=th&rp=Y”Ê" Response.Redirect(strURL, false);
Unfortunately it somhow changes the special characters so it ends up likhttp://www.myweb.com/doThatThing.aspx?run=th&rp=Y”Ê€
so the last part is changed from Y”Ê to Y%e2%80%9d%02%c3%8a%e2%82%ac I'm not exacty shore where the text is change. Any sugesstion? Maby I can change the parameter back from Y%e2%80%9d%02%c3%8a%e2%82%ac to Y”Ê ? Thanks Thomas
You should check the MSDN for the magic that
Server.URLEncode
andServer.URLDecode
does.Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep!