tracker issue : CF-3344090

select a category, or use search below
(searches all categories and all time range)

pageEncoding only works in CFCs

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/NotABug

Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)

Created: 10/10/2012

Components: Language

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Final /

Priority/Frequency: Major / Most users will encounter

Locale/System: English / Win All

Vote Count: 0

Problem Description:
See these docs:

You can specify the character encoding of a component by specifying a pageencoding processing directive at the top of the component body. *****You can specify the pageencoding directive only for components*****. The following code snippet shows how to use the directive:

My *****emphasis*****

This is a stupid restriction.

Please remove.

Steps to Reproduce:
try using pageEncoding in a CFM file

Actual Result:

Expected Result:
Not an error.

Any Workarounds:
There shouldn't need to be one because this is just lunacy.  What were you thinking?

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3344090

Deployment Phase:	Release Candidate

External Customer Info:
External Company:  
External Customer Name: Adam Cameron.
External Customer Email:  
External Test Config: My Hardware and Environment details:



Character encoding using pageencoding processing directive is supported for cfm as well. This is not specified in document, we will soon update the document stating the same. Thanks for this.
Comment by Akhila K.
17640 | December 18, 2013 01:23:41 AM GMT
Err... *no it isn't* supported in CFM files. This gives a compile error on CF10: <cfscript> processingdirective pageencoding="UTF-8"; rainbow = ["Whero","Karaka","Kowhai","Kakariki","Kikorangi","Tawatawa","Mawhero"]; numbers = ["tahi", "rua", "toru", "wha", "rima", "ono", "whitu", "waru", "iwa", "tekau"]; week = ["R?hina", "R?t?", "R?apa", "R?pare", "R?mere", "R?horoi", "R?tapu"]; writeDump(variables); </cfscript> Error msg: Invalid construct. A script statement must end with ";". -- Adam
Comment by External U.
17641 | December 18, 2013 01:41:40 AM GMT
Sorry, that was some Railo-only code. I meant this: <cfscript> pageencoding "UTF-8"; rainbow = ["Whero","Karaka","Kowhai","Kakariki","Kikorangi","Tawatawa","Mawhero"]; numbers = ["tahi", "rua", "toru", "wha", "rima", "ono", "whitu", "waru", "iwa", "tekau"]; week = ["R?hina", "R?t?", "R?apa", "R?pare", "R?mere", "R?horoi", "R?tapu"]; writeDump(variables); </cfscript> THAT just errors. -- Adam
Comment by External U.
17642 | December 18, 2013 03:37:04 AM GMT
Hello, Akhila? -- Adam
Comment by External U.
17643 | September 01, 2014 06:54:40 AM GMT
We will soon update on this. Apologies for the delay.Thanks.
Comment by Akhila K.
17644 | September 05, 2014 10:42:44 PM GMT
Script form usage of cfprocessingDirective is yet to be supported, please refer bug #CF-3712167. This will be tracked for next release.
Comment by Akhila K.
17645 | September 10, 2014 01:44:33 AM GMT