Search notes:

System.Web.HttpUtility (class)

Methods

HtmlAttributeEncode()
HtmlDecode()
HtmlEncode()
JavaScriptStringEncode()
ParseQueryString()
UrlDecode()
UrlDecodeToBytes()
UrlEncode()
UrlEncodeToBytes()
UrlEncodeUnicode()
UrlEncodeUnicodeToBytes()
UrlPathEncode()

UrlEncode and UrlDecode in PowerShell

PS> add-type -assemblyName System.Web
PS> $encoded = [System.Web.HttpUtility]::UrlEncode("René says:`nHello World!")
PS> write-host $encoded
Ren%c3%a9+says%3a%0aHello+World!
PS> write-host ([System.Web.HttpUtility]::UrlDecode($encoded))
René says:
Hello World!
See also the Perl module URI::Encode

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Microsof...', 1759415306, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Microsoft/dot-net/namespaces-classes/System/Web/HttpUtility/index(61): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78