Skip to main content
October 13, 2011
Question

Special Characters

  • October 13, 2011
  • 1 reply
  • 439 views

I am able to save special characters, but I can't use them in the cfselect as a value.  I tried using the value like "5''6''", but it doesn't work either.  Any clues?

<option value='5&##039;6&quot;' <cfif variables.height is "5''6''">selected="selected"</cfif> >5'6"</option>

    This topic has been closed for replies.

    1 reply

    Sean Coyne
    Participating Frequently
    October 13, 2011

    try

    <option value='5&##039;6&quot;' <cfif variables.height is '5''6"'>selected="selected"</cfif> >5'6"</option>

    Note the use of single quotes.

    You can also use 2 double quotes as follows:

    <option value='5&##039;6&quot;' <cfif variables.height is "5""6""">selected="selected"</cfif> >5'6"</option>

    But in my opinion that is more difficult to read.