I'm creating a dynamic list of products for a client's homepage, and I've found a very annoying issue in IE8.
The products' URLs are built with the following structure:
http://www.domain.com/language/category/product_name.aspx
The problem appears when I'm displaying the site in Spanish and the category contains the special character "ñ"
: IE replaces the character with "%c3%b1"
.
Following my code I've found that the URLs are constructed properly, but when the server shows the results page all the URLs cointaining special characters have been replaced.
The aspx page has the control:
<asp:HyperLink ID="LinkTitle" runat="server">Product Name</asp:HyperLink>
and the code behind class assigns the value to the control during a ListView's ItemDataBound event
Dim L_LinkTit As HyperLink
Dim Link as String
L_LinkTit = LstView.FindControl("LinkTitle")
Link = "/" & Session("lang") & "/" & cat & "/" & product & ".aspx"
L_LinkTit.NavigateUrl = Link
Any ideas on how to resolve this?