Returns
the encoded version of a given string.
Parameters
Parameter
|
Description
|
s1
|
The string to encode.
|
s2 (Optional)
|
A string identifying the type of encoding
to perform. The following strings are valid encoding strings:
url (URL encoding)
html (HTML encoding)
xml (XML encoding)
If you do not include
a value for s2, the function uses URL encoding.
|
ExamplesThe
following expressions are examples that use the Encode function:
Expression
|
Returns
|
Encode("""hello, world!""", "url")
|
%22hello,%20world!%22
|
Encode("ÁÂÃÄÅÆ", "html")
|
ÁÂÃÄÅÆ
|
|
|
|