Connecting Tech Pros Worldwide Forums | Help | Site Map

replace “ with “/”

Newbie
 
Join Date: Dec 2008
Posts: 29
#1: Dec 5 '08
how to repalce “ this character in coldfusion
Expand|Select|Wrap|Line Numbers
  1. <cfscript>
  2.   str_fnvalue = replace(str_fnvalue," “ ","&ldquo;","all");
  3.         str_fnvalue = replace(str_fnvalue,"”","&rdquo;","all");
  4.  
  5. <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;"

acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Dec 5 '08

re: replace “ with &ldquo;/&rdquo;


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.
Reply