Generates a URL-encoded string. For example, it replaces spaces
with %20, and non-alphanumeric characters with equivalent
hexadecimal escape sequences. Passes arbitrary strings within a

URLEncodedFormat(String [, charset]) → returns String

Discouraged: The continued use of this function is discouraged. It is recommended that you use EncodeForURL for all new applications.

Argument Reference for the URLEncodedFormat function


Required: Yes
A string or a variable that contains one


Required: No
The character encoding in which the string is encoded. Values:
  • utf-8
  • iso-8859-1
  • windows-1252
  • us-ascii
  • shift_jis
  • iso-2022-jp
  • euc-jp
  • euc-kr
  • big5
  • euc-cn
  • utf-16

Fork me on GitHub