URLencode package:utils R Documentation _E_n_c_o_d_e _o_r _D_e_c_o_d_e _a (_p_a_r_t_i_a_l) _U_R_L _D_e_s_c_r_i_p_t_i_o_n: Functions to encode or decode characters in URLs. _U_s_a_g_e: URLencode(URL, reserved = FALSE) URLdecode(URL) _A_r_g_u_m_e_n_t_s: URL: A character string. reserved: should reserved characters be encoded? See 'Details'. _D_e_t_a_i_l_s: Characters in a URL other than the English alphanumeric characters and '$ - _ . + ! * ' ( ) ,' should be encoded as '%' plus a two-digit hexadecimal representation, and any single-byte character can be so encoded. (Multi-byte characters are encoded as byte-by-byte.) In addition, '; / ? : @ = &' are reserved characters, and should be encoded unless used in their reserved sense, which is scheme specific. The default in 'URLencode' is to leave them alone, which is appropriate for 'file://' URLs, but probably not for 'http://' ones. _V_a_l_u_e: A character string. _R_e_f_e_r_e_n_c_e_s: RFC1738, _E_x_a_m_p_l_e_s: (y <- URLencode("a url with spaces and / and @")) URLdecode(y) (y <- URLencode("a url with spaces and / and @", reserved=TRUE)) URLdecode(y) URLdecode("ab%20cd")