cfprocessingdirective

Provides the following information to CFML on how to process the current page:

* Specifies whether to remove excess whitespace character from
CFML generated content in the tag body.
* Identifies the character encoding (character set) of the page
contents.

  <cfprocessingdirective>

 cfprocessingdirective();

Attribute Reference

suppressWhitespace boolean

Boolean; whether to suppress white space characters within
the cfprocessingdirective block that are generated by CFML
tags and often do not affect HTML appearance. Does not
affect any white space in HTML code.
Values:
  • true
  • false

pageEncoding string

A string literal; cannot be a variable. Identifies the
character encoding of the current CFML page. This attribute
affects the entire page, not just the cfprocessing tag body.
The value may be enclosed in single or double quotation
marks, or none.

For more information on character encodings, see:
www.w3.org/International/O-charset.html.
Values:
  • utf-8
  • iso-8859-1
  • windows-1252
  • us-ascii
  • shift_jis
  • iso-2022-jp
  • euc-jp
  • euc-kr
  • big5
  • euc-cn
  • utf-16

Compatibility

ColdFusion:

Version 4.5+ Not currently implemented in script CF11 / CF2016 (bug 3712167)

Examples
Sample code using the cfprocessingdirective tag

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub