Default font size of output changes from ColdFusion 5 to ColdFusion MX
Issue
When upgrading from ColdFusion 5 to ColdFusion MX, the default font size changes slightly after the upgrade. This can cause forms to render differently between versions, as the default font size in form text controls, list box controls, etc. also changes.
Reason
ColdFusion 5 and earlier used ISO-8859-1 encoding by default on all rendered output. Beginning with ColdFusion MX, all output is rendered in UTF-8 encoding by default. This change in default encoding changes the font size on the output, making characters and form controls appear slightly larger in ColdFusion MX.
Solution
After upgrading to ColdFusion MX, if it is necessary for pages to render exactly as they did in ColdFusion 5, the default encoding for the output page can be set to ISO-8859 by including an encoding directive in the page itself. This can be done by adding the following at the top of the CFML file that will render the output:
<cfprocessingdirective pageencoding="iso-8859-1">
This content requires Flash
To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.
Download the free Flash Player now!
