Please consider the following code...
<script language="javascript" type="text/javascript">
function QuickSearchBegin(){
window.location.href = 'default.aspx?SEARCH_KEY='+ escape('Some accented characters') + '&SELECTED_INDEX=' + 12;
return false;
}
</script></head>
<body><form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" Text="Button" onclientclick="return QuickSearchBegin()" />
</div>
In Page Load I have this code...
Response.Write("The value is " + Request.QueryString["SEARCH_KEY"].ToString()) ... all accented characters are converted into some garbage value...
I used both server.urldecode , as well as HttpUtility.Urldecode in the above code...
HttpUtility.Urldecode (Request.QueryString["SEARCH_KEY"].ToString())
What is the correct way of getting the accented values.
Thanks,
Arvind
<script language="javascript" type="text/javascript">
function QuickSearchBegin(){
window.location.href = 'default.aspx?SEARCH_KEY='+ escape('Some accented characters') + '&SELECTED_INDEX=' + 12;
return false;
}
</script></head>
<body><form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" Text="Button" onclientclick="return QuickSearchBegin()" />
</div>
In Page Load I have this code...
Response.Write("The value is " + Request.QueryString["SEARCH_KEY"].ToString()) ... all accented characters are converted into some garbage value...
I used both server.urldecode , as well as HttpUtility.Urldecode in the above code...
HttpUtility.Urldecode (Request.QueryString["SEARCH_KEY"].ToString())
What is the correct way of getting the accented values.
Thanks,
Arvind
Last edited: