<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Convert Quotes to Curly Smart Quotes</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Convert-Quotes-to-Curly-Smart-Quotes-82358</link>
        <description></description>
        <pubDate>Sun, 19 Jul 2026 14:48:05 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Convert-Quotes-to-Curly-Smart-Quotes-82358" rel="self" type="application/rss+xml" />

                <item>
          <title>Convert Quotes to Curly Smart Quotes</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245440#post2245440</link>
          <description><![CDATA[<p>Hi Jeff,</p>
<p>You should be able to do this with a simple plugin. You would need to utilize the viewer action "viewer_output_rows" seen below in the first line. </p>
<pre class="language-php"><code>addAction('viewer_output_rows', 'pluginName_convertToSmartQuotes', null, 1);
function pluginName_convertToSmartQuotes($rows, $listDetails, $schema) {
  $fieldsToConvert = array('content', 'title', 'field_1', 'field_2'); // List your fields that you want to convert in this array
  //Check against $schema if the column exists
  $columnsExist = function_to_check_if_keys_exist($fieldsToConvert, $schema);
  if (!$columnsExist ) { return $rows; } // Just return rows if nothing exists
  foreach (array_keys($rows) as $index) {
    $row = &amp;$rows[$index];
    foreach ($columnsExist as $field) {
      if ( isset($row[$field]) &amp;&amp; $row[$field] != '' )  { 
        $row[$field] = preg_replace(array('/\b"/','/"/',"/'/"), array('”','“',"’"), $row[$field]); 
      }
    }
    
    unset($row);
  }
  return $rows;
}
</code></pre>
<p>I did use some pseudo code to indicate what functionality you'd be looking to create [ <span style="text-decoration:underline;">function_to_check_if_keys_exist()</span> ]  so you can get the idea of what would need to be done. This pseudo function would need to be written to return an empty array if no columns/keys match or the columns that match.</p>
<p>If you're looking for us to write a quick plugin to help you accomplish this, send us an email at support@interactivetools.com and we would be happy to help you further and it shouldn't take much time at all. </p>
<p>Let me know if that helps or if you have further questions!</p>]]></description>
          <pubDate>Thu, 04 Mar 2021 07:30:13 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245440#post2245440</guid>
        </item>
                <item>
          <title>Convert Quotes to Curly Smart Quotes</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245435#post2245435</link>
          <description><![CDATA[<p>Hi Jenna</p>
<p>Thanks for following up, and sorry for the delayed reply. I'm not having much joy actually. Your help would be appreciated.</p>
<p>Jerry's post was helpful, and I think a php approach would be fine. Just not sure how to apply a universal rule to affect all the text on a page.</p>
<p>Thanks</p>

]]></description>
          <pubDate>Wed, 03 Mar 2021 04:16:39 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245435#post2245435</guid>
        </item>
                <item>
          <title>Convert Quotes to Curly Smart Quotes</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245393#post2245393</link>
          <description><![CDATA[<p>Hi Jeff,</p>
<p>Are you still looking for us to chime in on this one? I notice it's from December 2020.</p>
<p>Please let us know if you're still looking for assistance.</p>]]></description>
          <pubDate>Mon, 01 Feb 2021 08:46:36 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245393#post2245393</guid>
        </item>
                <item>
          <title>Convert Quotes to Curly Smart Quotes</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245226#post2245226</link>
          <description><![CDATA[<p>I suppose that technically, the answer is yes, but I'm not sure that it will make a difference in  the real world.</p>
<p>Maybe someone has a suggestion for the back end approach</p>
<p>Jerry Kornbluth</p>

]]></description>
          <pubDate>Mon, 14 Dec 2020 07:54:29 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245226#post2245226</guid>
        </item>
                <item>
          <title>Convert Quotes to Curly Smart Quotes</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245225#post2245225</link>
          <description><![CDATA[<p>Thanks for taking the time to comment Jerry.</p>
<p>I found that too. I wondered though, would it be better performance-wise to convert them in the backend cms once, rather than leaving it to php each time a website is loaded.</p>
<p>Thanks</p>
]]></description>
          <pubDate>Mon, 14 Dec 2020 05:55:37 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245225#post2245225</guid>
        </item>
                <item>
          <title>Convert Quotes to Curly Smart Quotes</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245224#post2245224</link>
          <description><![CDATA[<p>Hey Jeff,</p>
<p>I did a google search for your question  IE: Convert Quotes to Curly Smart Quotes php, and came up with lots of suggestions using simple preg_replace commands.</p>
<p>You might want to give that a try and see what you come up with, or look at this one: <a href="https://www.neowin.net/forum/topic/1387562-php-convert-straight-quotes-to-smart-quotes/" rel="nofollow">https://www.neowin.net/forum/topic/1387562-php-convert-straight-quotes-to-smart-quotes/</a></p>
<p>Good luck,</p>
<p>Jerry Kornbluth</p>
]]></description>
          <pubDate>Mon, 14 Dec 2020 05:05:52 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245224#post2245224</guid>
        </item>
                <item>
          <title>Convert Quotes to Curly Smart Quotes</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245223#post2245223</link>
          <description><![CDATA[<p>Hi</p>
<p>Is there a way to convert quotes to smart quotes? I have 1500+ products that that been uploaded from a csv file. I would like to change:</p>
<p>' to ‘<br />' to ’</p>
<p>" to “<br />" to ”</p>
<p>I tried a find and replace using PHP MyAdmin but it didn't recognise the difference between the characters.</p>
<p>Could this be done using Developer Console?</p>
<p>Thanks</p>]]></description>
          <pubDate>Mon, 14 Dec 2020 02:07:31 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245223#post2245223</guid>
        </item>
              </channel>
    </rss>
  