asp.net mvc 4 - System.Web.HttpUtility.UrlEncode method gives wrong result with different language value -


web.httputility.urlencode method in project. when encoding name in english language got correct result. example,

string temp = system.web.httputility.urlencode("jewelry"); 

then got exact result in temp variable. if wrote name in russian language got different result.

string temp = system.web.httputility.urlencode("ювелирные изделия");  

then got value in temp variable "%d1%8e%d0%b2%d0%b5%d0%bb%d0%b8%d1%80%d0%bd%d1%8b%d0%b5+%d0%b8%d0%b7%d0%b4%d0%b5%d0%bb%d0%b8%d1%8f"

can me how achieve exact name per language?

thank you!

actually, method has "done right thing" you!

it encodes non-ascii characters can valid in of cases , transmit on internet. if put temp variable in url parameter, correct result @ server side. that's urlencode means for. here question not problem @ all. please have @ link further reading understand url encoding: http://www.w3schools.com/tags/ref_urlencode.asp

if input russian word "url encoding functions" part in page have given, return same result web.httputility.urlencode method does.


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -