Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C# ASP.NET Unicode
how can i show my url in addressbar un unicode format.
when i write unicode text in my response.redirect("http://mysite/?current=سلام");
it is ok in Chrome and firefox. but i see soem %%?? in IE.
i know there is a solution coz this site :ليگ_برتر_فوتبال_انگليس_ركورد_شكست_
And This :هرم-جدید-در-مصر-کشف-شد
Is there any idea?
Thank u.
Posted 29-May-11 0:18am
Edited 29-May-11 0:26am
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

I dont know why, but i found out it u use response.redirect("with unicode text"); u cant see the unicode text in IE.
But if u use Hyperlink or (a Tag) u can see the unicode in URL currectly.
For example :
<asp:HyperLink ID="HyperLink1" runat="server"
    <a href="TrimDemo.aspx?current=سلام">خداحافظ</a>
<asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">LinkButton</asp:LinkButton>
And in codeBehind :
protected void LinkButton1_Click(object sender, EventArgs e)
Hyperlink and (a Tag) show Currect name if u support that unicode language,
But Redirect from linkbutton show something with %&&%d in IE anyway

Thanks any way.
Kim Togo at 31-May-11 2:07am
Good you solved it :-) - I find an old link about Similar problem.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You cannot. It is up to the internet browser to show the URL. If I copy & past one of the 2 urls into Internet Explorer 9 it show correct. But redirect it show wrong.
thatraja at 29-May-11 10:33am
[Comment from OP]
so u think how they redirect their links to these pages?
u can go to those sites and click on links on the left of page and u'll see that pages redirect to another page with unicode url.
do know how they can do that?

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 498
1 OriginalGriff 439
2 ChintanShukla 305
3 Richard Deeming 250
4 RyanDev 210
0 Sergey Alexandrovich Kryukov 8,901
1 OriginalGriff 7,571
2 CPallini 2,603
3 Richard MacCutchan 2,095
4 Abhinav S 1,893

Advertise | Privacy | Mobile
Web02 | 2.8.140827.1 | Last Updated 30 May 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100