Httputility. urlencode method:
Encode the URL string to implement reliable HTTP transmission from the Web server to the client.
Reload listConverts byte arrays to encoded URL strings for reliable HTTP transmission from the Web server to the
UrlEncode: Refers to the URL of the Web page in the Chinese characters of an encoding conversion, the most common is Baidu, Google and other search engines in the input of English Query time, generated through the Encode page URL.
UrlEncode
Call a download program today. When the downloaded URL contains Chinese characters, it cannot be downloaded, for example:
Http://www.huachu.com.cn/itbook/booklist.asp? Tsmc = assembly
I will use the Server. UrlEncode function in. net for conversion.
Parameters on the latest website include Chinese characters, for example:
Http://www.chinapoesy.com/Tag%b0% AE %c7%e9.html
Server. urlencode has already been used. However, some Chinese characters cannot be found in URL rewriting, so there is no
Parameters on the latest website include Chinese characters, for example:
Http://www.chinapoesy.com/Tag%b0% AE %c7%e9.html
Server. urlencode has already been used. However, some Chinese characters cannot be found in URL rewriting, so there is no
Notes:1. httputility. urlencode and httputility. urldecode are static methods, while server. urlencode and server. urldecode are instance methods.2. Server is an instance of the httpserverutility class and a property of system. Web. UI. Page.3.
in PHP UrlEncode () function is to convert the Chinese into a string encoding, so that does not cause the Chinese URL in the browser open garbled or error problems, let me introduce you in the use of UrlEncode () coding is some specific
In PHP, functions such as urlencode (), urldecode (), rawurlencode (), and rawurldecode () are provided to solve the URL encoding and decoding problem.
Understand urlencode:
Urlencode: a pointer to the Chinese characters in the url of a Web page.
UrlEncode: Refers to the Web page URL in a code conversion method, the most common is Baidu, Google and other search engines to enter the Chinese query time, generate the URL of the Web page after encode.
There are generally two kinds of urlencode,
UrlEncode: Refers to the URL of the Web page in the Chinese characters of an encoding conversion, the most common is Baidu, Google and other search engines in the input of English Query time, generated through the Encode page URL. UrlEncode
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.