To transmit URLs, some special characters, such as ampersands, slahses, spaces (and many more) are encoded in percent-encoding format. URL-unescaping is also known as URL-decoding and also percent-decoding. Note: More info on HTTPUtility (opens new window). (Period) + (Plus sign) (Exclamation / Bang) (Asterisk / Star) ' (Single Quote) ( (Open Bracket) ) (Closing Bracket) How does URL encoding work All offending characters are replaced by a and a two digit hexadecimal value that represents the character in the proper ISO character set. What is a text url decoder learn more about this tool With this tool you can URL-unescape text. # url3: http%3a%2f%%3ftest%3dmy+value ::UrlDecode ( $url3 ) # Returns: value # url2: ::UrlDecode ( $url2 ) # Returns: value # HttpUtility requires at least. # url1: http%3A%2F%%3Ftest%3Dmy%20value ::UrlDecode ( $url1 ) # Returns: value # HttpUtility requires at least. # url1: http%3A%2F%%3Ftest%3Dmy%20value ::UnescapeDataString ( $url1 ) # Returns: value # url2: ::UnescapeDataString ( $url2 ) # Returns: value # url3: http%3a%2f%%3ftest%3dmy+value ::UnescapeDataString ( $url3 ) # Returns: # Note: There is no `::UnescapeUriString()` # which makes sense since the `::UnescapeDataString()` # function handles everything it would handle plus more.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |