Try using the ascii equivalent, or maybe the HTML entity equivalent?

This:
<cfset sizeList2 = "2-3"" />

would become this:
<cfset sizeList2 = "2-3&quot;" />

or this:
<cfset sizeList2 = "2-3&#34;" />

-----Original Message-----
From: Che Vilnonis [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 23, 2007 7:31 AM
To: CF-Talk
Subject: Setting a variable that contains quotes and apostrophes.

I have a list of plant sizes that I want to set to a variable. The list
contains quotes and apostrophes. I can't seem to set the list to a variable
with both. I have to separate them out like so. Is there a way to combine
them?

<cfset sizeList = '4" pot,1 quart,2 quart,1 gal.,2 gal.,3
gal.,2-3",3-4",3-6",4-5",5-6",6-8",8-10",10-12",12-15",15-18",18-24"' />

<cfset sizeList2 = "2-3',3-4',4-5',5-6'" />

Thanks, Che




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291819
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to