Urlencodedformat - MACROMEDIA COLDFUSION MX 61-CFML Reference

Cfml reference
Hide thumbs Also See for COLDFUSION MX 61-CFML:
Table of Contents

Advertisement

URLEncodedFormat

Description
Generates a URL-encoded string. For example, it replaces spaces with
alphanumeric characters with equivalent hexadecimal escape sequences. Passes arbitrary strings
within a URL (ColdFusion automatically decodes URL parameters that are passed to a page).
Returns
A copy of a string, URL-encoded.
Category
Conversion
functions,
Function syntax
URLEncodedFormat(string [, charset ])
See also
URLDecode
History
ColdFusion MX 6.1: Changed the default encoding to be the response character encoding.
ColdFusion MX: Added the
Parameters
Parameter
string
charset
Usage
URL encoding formats some characters with a percent sign and the two-character hexadecimal
representation of the character. For example, a character whose code is 129 is encoded as
space is encoded with a plus sign.
Query strings in HTTP are always URL-encoded.
Example
<h3>URLEncodedFormat Example</h3>
Other
functions,
parameter.
charset
Description
A string or a variable that contains one
The character encoding in which the string is encoded. Optional.
The following list includes commonly used values:
• utf-8
• iso-8859-1
• windows-1252
• us-ascii
• shift_jis
• iso-2022-jp
• euc-jp
• euc-kr
• big5
• euc-cn
• utf-16
For more information on character encoding, see:
www.w3.org/International/O-charset.html.
Default: the character encoding of the response. See
String functions
, and non-
%20
cfcontent on page
87.
%81
URLEncodedFormat
. A
731

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents