Difference between revisions of "LlEscapeURL"

From Second Life Wiki
Jump to: navigation, search
m (tag into String category)
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.
+
|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.
 
|spec
 
|spec
|caveats=*The return is limited to 255 characters, this means this function can only safely escape 14 character string.
+
|caveats=* The function is not appropriate for escaping an URL all at once since the ': ' after the protocol and all of the '/' delimiting the various parts.  
**UTF-8 characters requiring up to 6 bytes to express; though there are no characters defined in the Unicode standard as of yet that use more then 4 bytes. This has the effect that if a string containing all 6-byte characters, this function could only encode 14 characters. See: {{LSLG|string#Caveats|String:Caveats}}
+
*See: {{LSLG|string#Caveats|String:Caveats}}
 
|constants
 
|constants
 
|examples
 
|examples

Revision as of 14:33, 1 February 2008

Summary

Function: string llEscapeURL( string url );

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.

• string url

Caveats

  • The function is not appropriate for escaping an URL all at once since the ': ' after the protocol and all of the '/' delimiting the various parts.
  • See: String:Caveats
All Issues ~ Search JIRA for related Bugs

Examples

See Also

Functions

• llUnescapeURL

Articles

• UTF-8
• Base64

Deep Notes

Search JIRA for related Issues

Signature

function string llEscapeURL( string url );