|
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
putting " " in cffile
I need to write a .csv file with all data encased in quotation marks, the problem is that cffile output uses double quotes to define the data to input. How can I get around this?? Geez, i know it's got to be something easy...Jessica Kennedy 08/27/08 04:39 P > I need to write a .csv file with all data encased in quotation marks, the problem is that cffile output uses double quotes to define the data to input. How can I get around this?? Geez, i know it's got to be something easy...Justin Scott 08/27/08 04:43 P THANK YOU! That worked perfectly!Jessica Kennedy 08/28/08 12:15 P This is extremely off topic but what is p with that email address Jessica!Dan Vega 08/28/08 02:06 P Jessica Kennedy wrote:Ian Skinner 08/27/08 04:59 P I need to write a .csv file with all data encased in quotation marks, the problem is that cffile output uses double quotes to define the data to input. How can I get around this?? Geez, i know it's got to be something easy... > I need to write a .csv file with all data encased in quotation marks, the problem is that cffile output uses double quotes to define the data to input. How can I get around this?? Geez, i know it's got to be something easy... You can either double up on the double quotes in the string, or wrap the contents in single quotes instead of double quotes. For example... <cffile contents="This is some ""awesome"" text with quotes!"> <cffile contents='This is some "awesome" text with quotes!'> Another way would be to use CFSAVECONTENT... <cfsavecontent variable="theOutput">This is some "awesome" text with quotes!</cfsavecontent> <cffile contents="#theOutput#"> -Justin Scott THANK YOU! That worked perfectly! ----- Excess quoted text cut - see Original Post for more ----- This is extremely off topic but what is p with that email address Jessica! ha :0 Thank You Dan Vega danvega@gmail.com http://www.danvega.org On Thu, Aug 28, 2008 at 12:10 PM, Jessica Kennedy < police_kidnapped_your_children@yahoo.com> wrote: ----- Excess quoted text cut - see Original Post for more ----- Jessica Kennedy wrote: > I need to write a .csv file with all data encased in quotation marks, the problem is that cffile output uses double quotes to define the data to input. How can I get around this?? Geez, i know it's got to be something easy... Yup, use single quotes.
|
Mailing Lists
|
Latest Fusion Authority Articles
|
||||||