replace “ with “/”

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CFFAN
    New Member
    • Dec 2008
    • 29

    replace “ with “/”

    how to repalce “ this character in coldfusion
    Code:
    <cfscript>
      str_fnvalue = replace(str_fnvalue," “ ","&ldquo;","all");
    		str_fnvalue = replace(str_fnvalue,"”","&rdquo;","all");
    
    <cfscript>
    I put the cose like this but not working correctly.i tried to replace it with a word but..it not double quots...it is "&ldquo" "&rdquo;"
    Last edited by acoder; Dec 5 '08, 08:56 AM. Reason: Added [code] tags
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Hi CFFAN, welcome to Bytes!

    Instead of &ldquo; and its right quote equivalent, use the entity number rather than the name, i.e. &#8820 (with a ; after it) for &ldquo; See Ref. symbols.

    Comment

    Working...