Will the bar-transcoding into%2d, which is the use of what function to convert?
Will the bar-transcoding into%2d, which is the use of what function to convert?
------Solution--------------------
RFC 3986:http://www.faqs.org/rfcs/rfc3986.html
Mentioned in: unreserved = alpha/digit/"-"/"."/"_"/"~
These non-reserved characters, when UrlEncode, should use the original characters. That is
UrlEncode ("-"),
UrlEncode ("letter"),
UrlEncode (digital)
UrlEncode (".")
UrlEncode ("_")
UrlEncode ("~") are the original characters. (Before PHP 5.3.0, Rawurlencode based on? RFC 1738来 encoded wavy lines (~). )
Perhaps this explanation is not necessarily accurate. 、
But UrlDecode ("%2d") is indeed "-"
Note that the coding standards for UrlEncode and Rawurlencode are different.
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.