--- title: "URL-encode()" slug: "string-url-encode" updated: 2026-08-17T08:42:06Z published: 2026-08-17T08:42:06Z canonical: "docs.lobstersoftware.com/string-url-encode" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # URL-encode() This function performs a URL encoding on the given text **a** using the encoding specified in parameter **b**. Parameter **c** specifies the escape character(s) for whitespaces. ## Parameters | Parameter | Description | | --- | --- | | a | Text. | | b | (optional) Encoding. Default: *8859_1.* **NOTE:** Use the three dots to select a value. | | c | If *false* or empty, whitespaces are escaped to *+* (default). If *true*, whitespaces are escaped to *%20* (see examples). | ## Examples | Parameter a | Parameter b | Parameter c | Result | | --- | --- | --- | --- | | Text with umlauts äöüß | | | Text+with+umlauts+%E4%F6%FC%DF | | Text with umlauts äöüß | | true | Text%20with%20umlauts%20%E4%F6%FC%DF | | Text with umlauts äöü߀ | UTF8 | | Text+with+umlauts+%C3%A4%C3%B6%C3%BC%C3%9F%E2%82%AC |