GoFiler Legato Script Reference
Legato v 1.5d Application v 5.25a
|
Table of Contents | < < Previous | Next >> |
Chapter Six — File Functions (continued)
Overview
The EncodeURIComponent function takes an incoming string and encodes it for transmission as part of a URN query.
Syntax/Parameters
Syntax
string = EncodeURIComponent ( string source );
Parameters
source
A string containing data to be encoded. The string cannot be larger than 8,192 characters.
Return Value
A string containing the encoded version of source or an empty string on failure. Use the GetLastError function to retrieve error information.
Remarks
The EncodeURIComponent function encodes only components; only sections of a query can be encoded because otherwise the delimiters would also be encoded resulting in an improperly formatted query. It is up to the script to assemble the components into the query. The following characters are encoded: $ & + , / \ : ; = ? @ < > # % space (0x20), and any code less than 0x1F or greater than 0x7F.
The resulting string can potentially be three times the size of the source to a maximum if 32,768 characters. If the source string is larger than 1024 characters, consider using POST style URL queries rather than GET style.
Related Functions
Platform Support
Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL
Legato IDE, Legato Basic
Table of Contents | < < Previous | Next >> |
© 2012-2024 Novaworks, LLC. All rights reserved worldwide. Unauthorized use, duplication or transmission prohibited by law. Portions of the software are protected by US Patents 10,095,672, 10,706,221 and 11,210,456. GoFiler™ and Legato™ are trademarks of Novaworks, LLC. EDGAR® is a federally registered trademark of the U.S. Securities and Exchange Commission. Novaworks is not affiliated with or approved by the U.S. Securities and Exchange Commission. All other trademarks are property of their respective owners. Use of the features specified in this language are subject to terms, conditions and limitations of the Software License Agreement.