XFA Specification
Chapter 23, FormCalc Specification
String Built-in Functions
875
Encode()
This function returns the encoded version of a given string.
Syntax
Encode(s1 [, s2])
Parameters
s1
is the string to be encoded.
s2
is a string identifying the type of encoding to perform:
- if the value is "url", the string will be URL encoded.
- if the value is "html", the string will be HTML encoded.
- if the value is "xml", the string will be XML encoded.
If s2 is omitted, the string will be URL encoded.
Returns
The encoded string.
Examples
Encode("""hello, world!""", "url")
returns "%22hello,%20world!%22".
Encode("ÁÂÃÄÅÆ", "html")
returns the HTML encoding "ÁÂÃÄÅÆ".
See Also
Decode()
.
Home Index Bookmark Pages
Pages: Home Index All Pages