urlencode(1)

NAME
urlencode - an URL-encoding utility

SYNOPSIS
urlencode [arg...]

DESCRIPTION
The utility encodes any argument by replacing any non-alphanumeric character, except dash "-", dot ".", underline "_", and tilde "~", the unreserved characters of RFC 3986, with its percent escaped hexadecimal representation.

If no argument is supplied, the utility reads standard input until end of file.

Encoded words are put on standard output, terminated by newlines.

EXAMPLES
    urlencode user@example.com
    user%40example.org

    printf '\x04\x05\x06 \x07\x08\x09'  | urlencode
    %04%05%06%20%07%08%09

AUTHOR
Alessandro Vesely <vesely@tana.it>

SEE ALSO

RFC 3986
    Uniform Resource Identifier (URI): Generic Syntax

urldecode(1)