Difference between revisions of "LlEscapeURL"

From Second Life Wiki
Jump to navigation Jump to search
(touchups)
Line 4: Line 4:
|func_footnote
|func_footnote
|func_desc
|func_desc
|return_text=that is the escaped/encoded version of '''url''', replacing spaces with %20 etc. The function will escape any character not in [a-zA-Z0-9] to %xx where xx is the hexadecimal value of the byte.
|return_text=that is the escaped/encoded version of '''url''', replacing spaces with %20 etc. The function will escape any character not in [a-zA-Z0-9] to %xx where xx is the hexadecimal value of the byte. To clarify, numbers and ASCII letters are NOT escaped.
|spec
|spec
|caveats=* The function is not appropriate for escaping a URL all at once because the ': ' after the protocol and all of the '/' characters delimiting the various parts will be escaped.  Instead, build the URL in parts, escaping parts of the path and query string arguments as needed.  
|caveats=* The function is not appropriate for escaping a URL all at once because the ': ' after the protocol and all of the '/' characters delimiting the various parts will be escaped.  Instead, build the URL in parts, escaping parts of the path and query string arguments as needed.  

Revision as of 19:38, 7 July 2008

Summary

Function: string llEscapeURL( string url );
0.0 Forced Delay
10.0 Energy

Returns a string that is the escaped/encoded version of url, replacing spaces with %20 etc. The function will escape any character not in [a-zA-Z0-9] to %xx where xx is the hexadecimal value of the byte. To clarify, numbers and ASCII letters are NOT escaped.

• string url

Caveats

  • The function is not appropriate for escaping a URL all at once because the ': ' after the protocol and all of the '/' characters delimiting the various parts will be escaped. Instead, build the URL in parts, escaping parts of the path and query string arguments as needed.
  • See: String:Caveats

Examples

See Also

Functions

• llUnescapeURL

Articles

• UTF-8
• Base64

Deep Notes

Signature

function string llEscapeURL( string url );