Skip to content

urlencode

deekayhd edited this page Mar 29, 2026 · 1 revision

URLENCODE

NAME

urlencode

SYNOPSIS

encode a string in a websage manner

USAGE

local ds = require "lib/dtutils.string"
local result = ds.urlencode(str)

str - string - the string that needs to be made websafe

DESCRIPTION

urlencode converts a string into a websafe version suitable for use in a web browser.

RETURN VALUE

result - string - a websafe string

REFERENCE

https://forums.coronalabs.com/topic/43048-remove-special-characters-from-string

Clone this wiki locally