Curly quotes and stuff not showing?

Are your curly quotes showing as question marks in diamonds? If so try this…

$string = str_replace(chr(145), '&#145', $string);
$string = str_replace(chr(146), '&#146', $string);
$string = str_replace(chr(147), '&#147', $string);
$string = str_replace(chr(148), '&#148', $string);

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>