Lasso Soft Inc. > Home

[Encode_URL]

[Encode_URL] takes a single argument which is a string to be encoded. It encodes any URL illegal characters in the string into URL entities.

This tag can be used to encode an entire URL. It will leave all the delimiters of the URL unchanged while encoding high-ASCII and other illegal characters into URL entities.

Note: This tag performs the same encoding as the -EncodeURL keyword.

  • Syntax
  • Parameters
[Encode_URL: 'Encoding Value']
Required Parameters
Encoding Value The specified value will have -EncodeURL encoding applied.
Examples

To encode text using URL encoding:

Use the [Encode_URL] tag. The following example encodes a string using URL encoding to demonstrate what characters are replaced by URL entitites. Notice that the n with a tilde is encoded, but the ? and = character are not.

[Encode_URL: 'default.lasso?mañana=tomorrow']
Result:
default.lasso?ma%F1ana=tomorrow
Tag Link [Encode_URL] Category Encoding
Type Substitution Data Source Any
Support Preferred Version 2.5
Output Type String Security None
Implementation Internal Sets Lasso 6.0, Lasso 5.0,LDML3x,LDML25

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft