utencode.wbb - URL Encode and Decode a Text Value

Syntax

CALL "utencode.wbb",decode,text$,result$

Description

The CGI specification requires that certain characters be specially coded to avoid ambiguous usage. This low-level routine may be used to both encode and decode text based on the CGI requirements.

decode is set to 0 to encode text$, returning the result in result$

decode is set to 1 to decode a previously encoded text$, returning the result in result$.