Home > Contents > Index >
ICS.URLENCODE
Translates a string into
x-www-form-urlencoded
format.Syntax
<ICS.URLENCODE STR="string" [OUTPUT="output variable name"]/>Parameters
STR (required)
- The string to be encoded.
OUTPUT (optional)
- Specifies an optional output variable. If this parameter is not specified, the output is streamed to the browser.
Description
The
ics.urlencode
tag returns the given string encoded intox-www-form-urlencoded
format. The translation process is as follows:
- Alphanumeric characters remain the same.
- The special characters ".", "-", "*", and "_" remain the same.
- The space character " " is converted into a plus sign "+".
- All other characters are unsafe and are first converted into one or more bytes using the platform's encoding scheme. Then each byte is represented by the 3-character string "%xy", where xy is the two-digit hexadecimal representation of the byte.
The behavior of this tag is identical to invoking the
java.net.URLEncoder.encode(String)
method inside a JSP scriptlet.Error Numbers
There are no possible
errno
for this tag.Example
The following line would print "text%2Fhtml".
<ICS.URLENCODE STR="text/html"/>See Also
Home > Contents > Index > Oracle XML Tag Reference
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.