logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

encode-url - (URL-encoding)

Description

encode-url URL-encodes <string> and stores the result in <encoded string>. <length> in "input-length" clause lets you specify the number of bytes in <string> that will be encoded - if not specified or negative, it is the string length. All bytes except alphanumeric and those from "-._~" (i.e. dash, dot, underscore and tilde) are encoded.

Examples

In this example, a string "str" is URL encoded and the result is in a "result" string variable: set-string str=" x=y?z& " encode-url str to result The "result" is "%20%20x%3Dy%3Fz%26%20%20".

Name

encode-url - (URL-encoding)

Purpose

URL-encode string.

See Also

URL encoding decode-urlencode-url See all documentation $DATE $VERSION GOLF(2gg)

Syntax

encode-url <string> to <encoded string> \ [ input-length <length> ]

See Also