Articles in this section

encodeURI helper

Use the encodeURI helper to convert special characters in a string into their URI-encoded representations. This ensures that spaces, punctuation, and other symbols are properly encoded for safe transmission in URLs.

Usage

{{{encodeURI field}}}
  • field: The string or field you want to URI-encode (e.g., record.orders or a literal like "sample data type").

Note

Note: Typically, you see triple braces ({{{ }}}) used with this helper, so you get the raw encoded text without additional formatting.

Examples

  1. Encoding a record field 

    {{{encodeURI orders}}}

    If orders is "overseas order flow", the output is "overseas%20order%20flow".

  2. Encoding a literal string 

    {{encodeURI "sample data type"}}

    Produces "sample%20data%20type".

Tip

  • Pair encodeURI with decodeURI if you need to reverse the encoding later.

  • Using triple braces ({{{ }}}) returns the encoded string exactly, without Celigo’s automatic formatting.

  • Characters such as , / ? : @ & = + $ # and spaces become percent-encoded, making them safe for use in URLs.