net.urlencode(str)function
Returns an URL-encoded string, so that it can be safely transmitted over the internet
Parameters
str
The string to URL-encode.
Return value
Return a URL-encoded string.Example
--! luart-extensions
import net
local s = "Hello world!"
print("raw: ", s)
print("encoded:", net.urlencode(s))