Search notes:

Perl module URI::Encode

use warnings;
use strict;

use URI::Encode qw(uri_encode uri_decode);

my $encoded = uri_encode('http://foo.bar/x+y 2~%.html');
print "Encoded = $encoded\n";
print "Decoded = " . uri_decode($encoded) . "\n";

# Encoded = http://foo.bar/x+y%202~%25.html
# Decoded = http://foo.bar/x+y 2~%.html
Github repository PerlModules, path: /URI/Encode/script.pl

See also

Perl modules, URI
The two methods UrlEncode and UrlDecode in the .NET class System.Web.HttpUtility.
URI: Uniform Resource Identifier

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/developm...', 1741108469, '18.227.161.128', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Perl/modules/URI/Encode/index(54): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78