URL encoding


If a URL includes characters that cannot be printed or transmitted safely, the URL must be encoded. Any unsafe or unprintable characters (such as single or double quotation marks, equal signs, or ampersands) are replaced with a percent sign (%), followed by the hexidecimal digits that correspond to the character's value. For example, the string "Assigned To" would be encoded as*%22Assigned+To%22*. (Some encoding values, such as %0A, are not supported due to security issues.)

The following table lists commonly encoded characters.

Character

Encoding value

<space>

+ (plus sign) or %20

" (double quotation mark)

%22

# (hash mark)

%23

$ (dollar sign)

%24

% (percent)

%25

& (ampersand)

%26

+ (plus sign)

%2B

, (comma)

%2C

< (less than sign)

%3C

= (equal sign)

%3D

> (greater-than sign)

%3E

/ (forward slash)

%2F

: (colon)

%3A

? (question mark)

%3F

The Mid Tier provides a URL encoder utility that enables you to convert nonalphanumeric characters to UTF-8 encoded values. You can access the utility through:

http://<midTierServer>/<contextPath>/shared/ar_url_encoder.jsp

where arsys is the default context path.

URL encoder utility

url-encode.gif

To convert non-alphanumeric characters to encoded values

  1. Open the AR URL Encoder utility by using the following URL:

    http://<midTierServer>/<contextPath>/shared/ar_url_encoder.jsp

    arsys is the default context path.

  2. In the Original String field, enter the individual character or string for which you want to find the correct encoding.
    You can encode parameter values, but do not code the entire URL.
  3. Click Convert.
    The encoded values appear in the Encoded String field. 
    urlencode-ex.gif

To configure Internet Explorer for automatic encoding

  1. Select Tools > Internet Options.
  2. Click the Advanced tab.
  3. Select the Always send URLs as UTF-8 check box.
  4. Restart the browser.
    Even when Internet Explorer is configured to encode automatically, certain ASCII characters, such as a forward slash ( / ) , a question mark ( ? ) , an equal sign ( = ), a plus sign ( + ) , or an ampersand ( & ), will not be URL encoded. If your form name or application name contains any of these characters, you must use the AR URL Encoder utility to encode.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*