Equinox Online Help - Language Reference - A to Z
WebEncode |
|
---|---|
Applies to | |
Syntax | WebEncode SourceExpression, Target [, Encoding] |
Action | Encodes strings for later use in a web page or URI |
Scope | Can be used anywhere |
Notes | SourceExpression is a string expression.
Target should be a memo, or string large enough to contain the result. Encoding is type HTTP percent encoding type, as WebOutput:
If Encoding is set to 4, Equinox creates a UTF-8 string compatible with JavaScript Object Notation (JSON). See RFC 4627 section 2.5 for full details; non-printable characters are converted to "\u00XX", and other characters are escaped, for example linefeed becomes "\n". |
Category | Web Server |
See Also | WebOutput, WebOutputFile, WebDecode |
Example | This example outputs a data uri containing a picture encoded in base64: memo m, mb |