{"id":1162,"date":"2014-08-24T09:54:30","date_gmt":"2014-08-24T09:54:30","guid":{"rendered":"https:\/\/poiseddevelopers.com\/reality-tech\/?p=1162"},"modified":"2024-05-06T12:29:40","modified_gmt":"2024-05-06T12:29:40","slug":"encoding-and-decoding-urls-in-powershell","status":"publish","type":"post","link":"https:\/\/poiseddevelopers.com\/reality-tech\/encoding-and-decoding-urls\/","title":{"rendered":"Encoding and Decoding URLs in PowerShell"},"content":{"rendered":"<p>URLs in SharePoint are often filled with \u201c%20\u201d in place of blanks, and other substitutions.<\/p>\n<p>However, there are times when the original clean URL is desired. The \u201c%20\u201d references are known as \u201cencoded\u201d URls. URL encoding replaces unsafe ASCII characters with a \u201c%\u201d followed by two hexadecimal digits.<\/p>\n<p>URLs can only be sent over the Internet using the ASCII character set. However for emailing or auditing URLs, sometimes the decoded URL is desired.<\/p>\n<p>Here\u2019s how to Encode and Decode an URL in PowerShell:<\/p>\n<pre lang=\"php\">$EncodedURL = [System.Web.HttpUtility]::UrlEncode($URL)\r\n$DecodedURL = [System.Web.HttpUtility]::UrlDecode($URL)<\/pre>\n<p>Industry-standard encoding is described in detail at: http:\/\/www.w3schools.com\/tags\/ref_urlencode.asp<\/p>\n<p><a href=\"https:\/\/reality-tech.com\/services\/powershell-scripting-automation\/\" target=\"_blank\" rel=\"noopener\" aria-label=\"PowerShell Scripting Services - open in a new tab\" data-uw-rm-ext-link=\"\">PowerShell Scripting Services<\/a>\u00a0can greatly enhance automation processes. When working with SharePoint, having a reliable Sharepoint development company is crucial for efficient collaboration and data management.<\/p>\n<p>For More, Contact reach Reality Tech a trusted provider of\u00a0<a href=\"https:\/\/reality-tech.com\/services\/sharepoint-development-services\/\" target=\"_blank\" rel=\"noopener\" aria-label=\"SharePoint online development services - open in a new tab\" data-uw-rm-ext-link=\"\">SharePoint online development services<\/a>\u00a0to explore your options further<\/p>\n<pre lang=\"php\"><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>URLs in SharePoint are often filled with \u201c%20\u201d in place of blanks, and other substitutions. However, there are times when the original clean URL is desired. The \u201c%20\u201d references are known as \u201cencoded\u201d URls. URL encoding replaces unsafe ASCII characters with a \u201c%\u201d followed by two hexadecimal digits. URLs can only be sent over the [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":2983,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[26],"tags":[],"class_list":["post-1162","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell"],"acf":[],"_links":{"self":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts\/1162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/comments?post=1162"}],"version-history":[{"count":6,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts\/1162\/revisions"}],"predecessor-version":[{"id":2984,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts\/1162\/revisions\/2984"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/media\/2983"}],"wp:attachment":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/media?parent=1162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/categories?post=1162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/tags?post=1162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}