Discover how to encode url in html, include the articles, news, trends, analysis and practical advice about how to encode url in html on alibabacloud.com
It is found that almost all Web sites now have UrlEncode operations on Chinese characters and special characters in URLs, namely:http://hi.baidu.com/%BE%B2%D0%C4%C0%CF%C8%CB/creat/blog/This way, in the middle of the form, it is definitely my login
Special character escaping encoding in URL URLsDecember 29, 2017 09:10:57Hits:Special character escaping encoding in URL URLsCharacter-URL encoded valueSpaces-%20"-%22#-%23%-%25&-%26(-%28)-%29+-%2B,-%2c/-%2F:-%3a; -%3b=-%3d>-%3e? -%3f@-%40\-%5C|
Why do we need to encode parameters? I believe that the majority of programmers who have experience in development know that in the Web, if the parameter value is directly transferred on the URL address, if it is Chinese, or +, there will be garbled
Why do we need to encode parameters? I believe that the majority of programmers who have experience in development know that in the Web, if the parameter value is directly transferred on the Url address, if it is Chinese, or +, there will be garbled
It is usually assumed that something needs to be coded to indicate that such a thing is not suitable for transmission. There are a variety of reasons, such as size too large. including privacy data, for URLs, the reason for encoding is because some
If an encoding is required, it indicates that this is not suitable for transmission. There are a variety of reasons, such as a large size that contains private data. For a URL, encoding is required because some characters in the URL may cause
Usually if something needs to be coded, it means that something is not suitable for transmission. There are a variety of reasons, such as size too large to contain private data, and for URLs, the reason for encoding is because some characters in the
We all know that the transmission of the parameters in the HTTP protocol is a "Key=value" in the form of a, if you want to pass multiple parameters, you need to use the "&" symbol to split the key value pairs. such as "? Name1=value1&name2=value2",
The encodeURI () function encodes a string as a URI.GrammarencodeURI (uristring)
Parameters
Description
Uristring
Necessary. A string that contains the URI or other text to encode.
return valueA
Http://www.imkevinyang.com/2009/08/%E8%AF%A6%E8%A7%A3javascript%E4%B8%AD%E7%9A%84url%E7%BC%96%E8%A7%A3%E7%A0%81.htmlSummaryIn this paper, we mainly introduce the related problems of URI codec, and explain in detail which characters in URL coding
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.