Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter SixFile Functions (continued)

DecodeURI Function

Overview

The DecodeURI function decodes a URI (specifically the query portion) to convert hexadecimal representations of spaces and special characters within it.

Syntax/Parameters

Syntax

string = DecodeURI ( string source );

Parameters

source

A string containing data to be decoded. The string cannot be larger than 1024 characters.

Return Value

Returns a decoded string or an empty string if an error occurs. If the source is empty, the result will be empty. Use the GetLastError function to retrieve error information.

Remarks

The DecodeURI function can process a complete URI or sections.

A two-character hex value is expected after a ‘%’ character. If the URI or URI portion cannot be decoded, the GetLastError function will return ERROR_SYNTAX and the lower part of the error code will be the zero-based position of the error within the source parameter.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic