XFA Specification
Chapter 23, FormCalc Specification
String Built-in Functions
874
Decode()
This function returns the decoded version of a given string.
Syntax
Decode(s1 [, s2])
Parameters
s1
is the string to be decoded.
s2
is a string identifying the type of decoding to perform:
- if the value is "url", the string will be URL decoded.
- if the value is "html", the string will be HTML decoded.
- if the value is "xml", the string will be XML decoded.
If s2 is omitted, the string will be URL decoded.
Returns
The decoded string.
Examples
Decode("%ABhello,%20world!%BB", "url")
returns "«hello, world!»".
Decode("ÆÁÂÁÂ", "html")
returns "ÆÁÂÁÂ".
Decode("~!@#$%^&*()_+|`{"}[]<>?,./;':", "xml")
returns "~!@#$%^&*()_+|`{""}[]<>?,./;':".
See Also
Encode()
.
Home Index Bookmark Pages
Pages: Home Index All Pages