The encodeURI(...) function has only one variation, not counting syntax variations. It makes a copy of a String value converting all characters except letter, numbers and the forward slash to URI escape sequences. For non-ASCII characters a UTF-8 encoding is used. A URI escape sequence consists of the percent sign followed by a two digit hexidecimal value corresponding to the numeric value of the byte.
Syntax:
encodeURI( source-string )
source-string.encodeURI( )
Parameter | Description |
source-string | The String to encode. |