In the forum, it is often seen that incomplete transmission occurs when the URL is passed in Chinese. The solution is as follows:
Modify UTF-8 in the web. config file to gb2312.
Then, write as follows:
Url = "description. aspx? Name = "+ server. urlencode (myname. Text)
Response. Redirect (URL)
When receiving:
Name = server. urldecode (request. querystring ("name "))
// Coding by UTF-8
String Tempsearchstring1 = System. Web. httputility. urlencode ( " C # China " );
// Encoding by gb2312
String Tempsearchstring2 = System. Web. httputility. urlencode ( " C # China " , System. Text. encoding. getencoding ( " Gb2312 " ));
Two additional instructions and case addresses are provided:
Http://msdn.microsoft.com/library/chs/default.asp? Url =/library/CHS/cpref/html/frlrfsystemwebhttpserverutilityclassurlencodetopic1.asp
Http://dotnet.aspx.cc/ShowDetail.aspx? YUEMA9OS-W1DN-4KIS-8RIE-S742LLJ91L6Q