Check the header info on the site in question. Match the charset to whatever that is. :-)
On Thu, Apr 14, 2011 at 11:34 AM, Rick Faircloth <[email protected]>wrote: > > so, <cfcontent type="text/css charset=UTF-8"> ? > > -----Original Message----- > From: Matt Quackenbush [mailto:[email protected]] > Sent: Thursday, April 14, 2011 12:29 PM > To: cf-talk > Subject: Re: Parsing .css files with CF > > > You'll probably want to define the charset to match whatever you're using > in > your HTML. I *think* CF defaults to UTF-8. > > On Thu, Apr 14, 2011 at 11:21 AM, Rick Faircloth > <[email protected]>wrote: > > > > > So just use: > > > > style.cfm > > --------- > > > > <cfcontent type="text/css" charset=ISO-8859-1"> > > <cfset variables.color = "##fff"> > > > > <cfoutput> > > > > body { color:#variables.color#; } > > > > </cfoutput> > > > > Then in calling doc: > > <link rel="stylesheet" href="style.cfm" text="text/css" /> > > > > ??? > > > > Also, I got the "charset=ISO-8859-1" from an example. > > Is that necessary or important, and why? > > > > > > > > -----Original Message----- > > From: John M Bliss [mailto:[email protected]] > > Sent: Thursday, April 14, 2011 12:05 PM > > To: cf-talk > > Subject: Re: Parsing .css files with CF > > > > > > Nah. Just use .cfm and cfcontent to set the type of the .cfm to .css and > > then you can actually call the .cfm where you'd usually call your .css > file > > in HTML. I promise it's easier done than said. :-) > > > > On Thu, Apr 14, 2011 at 11:02 AM, Rick Faircloth > > <[email protected]>wrote: > > > > > > > > So, is setting up IIS to cause CF to parse > > > CSS files still the best way to accomplish > > > using variables in CSS files? > > > > > > > > > > > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343726 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

