e$ = easy:Escape(s$)
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.