The R Project SVN R

Rev

Rev 34340 | Rev 44184 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34340 Rev 34354
Line 4... Line 4...
4
\title{Encode or Decode a (partial) URL}
4
\title{Encode or Decode a (partial) URL}
5
\description{
5
\description{
6
  Functions to encode or decode characters in URLs.
6
  Functions to encode or decode characters in URLs.
7
}
7
}
8
\usage{
8
\usage{
9
URLencode(UR, reserved = FALSE)
9
URLencode(URL, reserved = FALSE)
10
URLdecode(URL)
10
URLdecode(URL)
11
}
11
}
12
\arguments{
12
\arguments{
13
  \item{URL}{A character string.}
13
  \item{URL}{A character string.}
14
  \item{reserved}{should reserved characters be encoded? See Details.}
14
  \item{reserved}{should reserved characters be encoded? See Details.}
Line 17... Line 17...
17
  Characters in a URL other than the English alphanumeric characters and
17
  Characters in a URL other than the English alphanumeric characters and
18
  \code{$ - _ . + ! * ' ( ) ,} should be encoded as \code{\%}
18
  \code{$ - _ . + ! * ' ( ) ,} should be encoded as \code{\%}
19
  plus a two-digit hexadecimal representation, and any single-byte
19
  plus a two-digit hexadecimal representation, and any single-byte
20
  character can be so encoded. (Multi-byte characters are encoded as
20
  character can be so encoded. (Multi-byte characters are encoded as
21
  byte-by-byte.)
21
  byte-by-byte.)
22
  
22
 
23
  In addition, \code{; / ? : @ = &} are reserved characters, and should
23
  In addition, \code{; / ? : @ = &} are reserved characters, and should
24
  be encoded unless used in their reserved sense, which is scheme
24
  be encoded unless used in their reserved sense, which is scheme
25
  specific.  The default in \code{URLencode} is to leave them alone, which
25
  specific.  The default in \code{URLencode} is to leave them alone, which
26
  is appropriate for \code{file://} URLs, but probably not for
26
  is appropriate for \code{file://} URLs, but probably not for
27
  \code{http://} ones.
27
  \code{http://} ones.