lang
EN

rawurlencode

Returns a string where all non-alphanumeric characters, except -_.~, are replaced by a percent sign (%) followed by two hexadecimal digits.
Example: «Hello world!» → «Hello%20world%21».

Produces results similar to the PHP function rawurlencode().