encode

decode given value (default: base-64)


Parameters

encode value :string :literal

Attributes

urlencode URL based on RFC3986
spacesalso encode spaces
slashesalso encode slashes
from:stringsource character encoding (default: CP1252)
to:stringtarget character encoding (default: UTF-8)

Returns

  • :string
  • or  :nothing

Examples

copy
print encode "Numquam fugiens respexeris" ; TnVtcXVhbSBmdWdpZW5zIHJlc3BleGVyaXM=

copy
print encode.url "http://foo bar/" ; http%3A%2F%2Ffoo+bar%2F

Related