Name
easy:Escape -- URL encodes the given string
Synopsis
e$ = easy:Escape(s$)
Function
This function converts the given input string s$ to a URL encoded string and returns that. All input characters that are not a-z, A-Z, 0-9, '-', '.', '_' or '~' are converted to their "URL escaped" version (%NN where NN is a two-digit hexadecimal number).

libcurl is typically not aware of, nor does it care about, character encodings. easy:Escape() encodes the data byte-by-byte into the URL encoded version without knowledge or care for what particular character encoding the application or the receiving server may assume that the data uses.

The caller of easy:Escape() must make sure that the data passed in to the function is encoded correctly.

Inputs
s$
string to escape
Results
e$
escaped string

Show TOC