Using uri encoding

Verified
Added by iNTERFACEWARE

Encode and decode strings for use in uri/url, using filter.uri.enc() and filter.uri.dec()

Source Code
-- encode string for safe use in a uri/url
local Enc = filter.uri.enc('the #1 & #2 (more later)')
trace(Enc)

-- decode uri encoded string
local Dec = filter.uri.dec(Enc)
trace(Dec)
Description
Encode and decode strings for use in uri/url, using filter.uri.enc() and filter.uri.dec()
Usage Details

Demonstrates how to encode and decode strings using uri encoding, by using filter.uri.enc() and filter.uri.dec().

How to use the snippet:

  • Paste the code into your script
  • Inspect the annotations to see how it works