Kbase P4048: How to use the URL-ENCODE speedscript function ?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  13/01/2011 |
|
Status: Verified
GOAL:
How to use the URL-ENCODE speedscript function ?
GOAL:
How to change encoding options for URL on Webspeed applications?
FACT(s) (Environment):
All Supported Operating Systems
WebSpeed 3.1x
OpenEdge 10.x
FIX:
The syntax for the URL-ENCODE() function is shown below.
URL-ENCODE(input-string, encoding-option)
All appropriate characters are encoded as hexadecimal triplets. For instance, %7E is the tilde character and the percent character is %25.
This function is useful for creating query strings where the values in name value pairs might contain spaces or special characters.
For example:
?CustName= Brown%20%26%20Winhold
instead of:
?CustName=Brown & Winhold
The encoding-option is either query, cookie, or default.