1URLENCODE(1)                    GridSite Manual                   URLENCODE(1)
2
3
4

NAME

6       urlencode - convert strings to or from URL-encoded form
7

SYNOPSIS

9       urlencode [-m|-d] string [string ...]
10

DESCRIPTION

12       urlencode encodes strings according to RFC 1738.
13
14       That  is,  characters  A-Z a-z 0-9 . _ and - are passed through unmodi‐
15       fied, but all other characters are represented  as  %HH,  where  HH  is
16       their two-digit upper-case hexadecimal ASCII representation.  For exam‐
17       ple,       the       URL        http://www.gridpp.ac.uk/        becomes
18       http%3A%2F%2Fwww.gridpp.ac.uk%2F
19
20       urlencode  converts each character in all the strings given on the com‐
21       mand line. If multiple strings are given, they  are  concatenated  with
22       separating spaces before conversion.
23
24

OPTIONS

26       -m     Instead  of  full conversion, do GridSite "mild URL encoding" in
27              which A-Z a-z 0-9 . = - _ @ and / are passed through unmodified.
28              This  results  in  slightly  more human-readable strings but the
29              application must be prepared to create or simulate the  directo‐
30              ries implied by any slashes.
31
32
33       -d     Do URL-decoding rather than encoding, according to RFC 1738. %HH
34              and %hh strings are converted and other  characters  are  passed
35              through  unmodified,  with  the exception that + is converted to
36              space.
37
38

EXIT CODES

40       0 is always returned.
41
42

AUTHOR

44       Andrew McNab <Andrew.McNab@manchester.ac.uk>
45
46       urlencode is part of GridSite: http://www.gridsite.org/
47
48
49
50urlencode                        November 2003                    URLENCODE(1)
Impressum