= Escape ("<string>")
the binary characters in the string to its percentage(%) hexa form.
The string to be converted.
Returns the converted string.
- Escape() is useful when passing binary values as arguments to an external plugin. Xtend IVR calls an external plugin with a text file as its command line argument containing all active variables and its values. If you are passing binary values into a plugin, it is not possible to write binary values into this text file. So before you call the plugin, convert the binary values into hexa values by calling the escape(). The plugin has to convert them again back to binary before applying the actual value. Subsequently, the plugin must again replace the non-readable values with their equivalent hex figures and return the values to be further processed by Xtend IVR.
$var = Escape("Hello World")
$var will contain "Hello%20World".