Click here to Skip to main content
15,917,061 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I would be very greatful if someone could help me, I'm stuck with this problem for days. My question is referring an Asp .net web site that has text and urls in Hebrew.

When I'm using Controls like asp:Menu And TreeView And assigning values in Hebrew to the NavigatURL attribute (both in aspx page and cs) its writing the text in some kind of code.

All site pages are saved and set to use utf-8 format.

For example:

<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal" CssClass="HeaderMenu"  >
    <Items>
        <asp:MenuItem Text="זרי פרחים" NavigateUrl="~/זרי-פרחים"></asp:MenuItem>
    </Items>
</asp:Menu>


And on browser when I look at the Source it shows:

<li role="menuitem" class="static" style="removed: relative; float: right; ">
     <a class="level1 HeadeMenuItems static" href="%d7%96%d7%a8%d7%99-%d7%a4%d7%a8%d7%97%d7%99%d7%9d"   
        tabindex="-1">זרי פרחים</a>
</li>
Posted
Comments
[no name] 7-Sep-12 9:55am    
And? What is the problem? And/or what is the question?
Guy__Levin 7-Sep-12 10:07am    
How can I make it look like the original text and not percent encode?
Timberbird 7-Sep-12 10:07am    
It's common behaviour to encode non-ASCII (and some of ASCII) symbols in URLs this way. Does this link work when you click it?
Guy__Levin 7-Sep-12 10:15am    
Yes it works, but I prefer it to show in Hebrew.
BTW When I use regular link and NOT setting them to runat=server
It works just fine

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900