UrlEncode

Returns the string encoded for URLs (or URIs) by swapping characters into UTF-8 character representation

  • Returned Output: Text
  • Library: PQL \ Common \ String
  • Version: 2018.00.000
  • Compatibility:
    • Can be combined with and other PQL function throughout the application.
    • It CANNOT be used with MDX or VBA functions. But it can be used on MDX-based content in other parts of the application.

Syntax

UrlEncode( <Text> )

* Click on the function's arguments above for more details on the input values.

Comments
  • The input text string can be any alphanumeric set of characters.
  • Unencoded strings may not always work in browsers. Encoding them eliminates issues.
Different Function types
  • To reverse encoding, use the UrlDecode function.

Examples

This example returns "https://mozilla.org/?x=%D1%88%D0%B5%D0%BB%D0%BB%D1%8B" from the input string "https://mozilla.org/?x=шеллы"

UrlEncode("https://mozilla.org/?x=шеллы")