When an ASPX page is requested with a password that has characters such as Æ, ç, €, œ, ž, or £, the Request.ServerVariables("AUTH_PASSWORD") object omits these characters when the password is displayed.
To work around the behavior that is described in the "Symptoms" section of this article, follow these steps:
Paste the following code in Notepad:
<% Dim header as string Dim ticket as string Dim GetAuthPassword as string header=Request.ServerVariables("HTTP_AUTHORIZATION") If header.StartsWith("Basic") or header ="" then ticket = header.Substring(6) ticket = System.Text.Encoding.Default.GetString(Convert.FromBase64String(ticket)) response.write(ticket.Substring((ticket.IndexOf(":")+1))) GetAuthPassword =ticket.Substring((ticket.IndexOf(":")+1)) end if %>AUTH_USER=<%=Request.ServerVariables("AUTH_USER") %><br>AUTH_PAssword=<%=GetAuthPassword%>
Save the file as ExampleASPX.aspx.
Note ExampleASPX.aspx is a placeholder for the name of the .aspx file.
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section of this article.
Steps to reproduce the behavior
Create a user
At a command prompt, create a local user by using the following command:
Note WebServerName is a placeholder for the name of the Web server.
In the dialog box that appears, type MyUser in the User Name box, and then type TestÆç123 in the Password box.
Note MyUser is the user name and TestÆç123 is the password that you created in the "Create a User" section of the article.
Notice that the user name that the ASPX page is accessed with is displayed correctly but that the password that the ASPX page is accessed with appears incorrectly. The characters that are specified in the password are omitted.
For more information, visit the following Microsoft Developer Network (MSDN) Web sites: