javascript Global encodeURIComponent( )

encodeURIComponent( )NN 6 IE 5.5(Win) ECMA 3  

encodeURIComponent("URIComponentString")

  

Returns a string with all characters except Latin character set letters A through Z (upper and lower cases), digits 0 through 9, and a set of URI-friendly symbols (- _ . ! ~ * ( ) ' space) converted to their escaped versions (% symbol followed by the hexadecimal version of their Unicode value). Intended for use on data portions of a URI excluding the protocol.

 
Parameters
 
  • A string containing a relative or complete plain-text URI, or portions thereof.
 
Returned Value

A string.


897,Nickname,Homepage or email,Comments here,Add comment