Returns
the encoded version of a given string.
Syntax
Encode(
s1
[,
s2
])
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.
|
Examples
The
following expressions are examples that use the
Encode
function:
Expression
|
Returns
|
Encode("""hello, world!""", "url")
|
%22hello,%20world!%22
|
Encode("ÁÂÃÄÅÆ", "html")
|
ÁÂÃÄÅÆ
|
|
|
|