I am using IIS 5.1 with ASP.NET 1.1
I cannot get the correct url in the error handler in the global.asax.
My testing global.asax:
<%@ Application %>
<script language="C#" runat="server">
public void Application_Error()
{
Server.ClearError();
Response.Write(Request.RawUrl + "<br>");
Response.Write(HttpUtility.UrlDecode("%e4%b8%80")) ;
}
</script>
I tried url http://localhost/%e4%b8%80.aspx
It's supposed to be "?" (a chinese character) in the url.
But I got /�.aspx in the Request.RawUrl.
I checked the IIS log and it logged the correct url in the log file.
Also HttpUtility.UrlDecode returns the correct url.
Thanks,
Steve