<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>spambotEmailProtector Encoding problem on save to CSV file</title>
        <link>https://interactivetools.com/forum/forum-posts.php?spambotEmailProtector-Encoding-problem-on-save-to-CSV-file-80856</link>
        <description></description>
        <pubDate>Fri, 14 Aug 2026 08:09:17 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;spambotEmailProtector-Encoding-problem-on-save-to-CSV-file-80856" rel="self" type="application/rss+xml" />

                <item>
          <title>spambotEmailProtector Encoding problem on save to CSV file</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240217#post2240217</link>
          <description><![CDATA[<p>Hi Zicky</p>
<p>Looks like Deborah got you on the right track.</p>
<p>Glad that worked out :).</p>
<p>Keep me up to date with how you are making out.</p>
<p>Thanks!</p>]]></description>
          <pubDate>Tue, 14 Feb 2017 09:20:19 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240217#post2240217</guid>
        </item>
                <item>
          <title>spambotEmailProtector Encoding problem on save to CSV file</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240210#post2240210</link>
          <description><![CDATA[<p>Hey Deborah,</p>
<p>I completely overlooked that in the readme.txt file. I feel stupid. : )</p>
<p>I added the line of code, but it didn't work immediately. I took a closer look and realized that I also had an older version of the "spambot Email Protector" running. So I updated the plugin, reactivated the updated plugin, and once I updated it and added the line of code to the top of my page it worked like a charm.</p>
<p>Thank you for your help!</p>
<p>All the best, Zicky</p>]]></description>
          <pubDate>Sun, 12 Feb 2017 11:46:43 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240210#post2240210</guid>
        </item>
                <item>
          <title>spambotEmailProtector Encoding problem on save to CSV file</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240209#post2240209</link>
          <description><![CDATA[<p>Zicky, I've not tried this myself, but in the version 2.01 readme file is this tip:</p>
<p>To disable this plugin for specific PHP pages put this code at the very top:</p>
<p><code>&lt;?php $GLOBALS['SEP_DISABLED'] = true; // Disable Spambot Email Protector ?&gt;</code></p>
<p>~ Deborah</p>]]></description>
          <pubDate>Sun, 12 Feb 2017 07:08:25 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240209#post2240209</guid>
        </item>
                <item>
          <title>spambotEmailProtector Encoding problem on save to CSV file</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240208#post2240208</link>
          <description><![CDATA[<p>I'm building a "save to CSV file" almost identical to the one seen here:</p>
<p><a href="http://www.interactivetools.com/forum/forum-posts.php?postNum=2199282#post2199282" rel="nofollow">http://www.interactivetools.com/forum/forum-posts.php?postNum=2199282#post2199282</a></p>
<p><strong>The problem I'm having is that when I download the CSV file and open it, the first row's email address is encoded.</strong></p>
<blockquote>
<p><span>&lt;bdo dir="rtl"&gt;&amp;#x6d;&amp;#x6f;&amp;#99;&lt;span&gt;&amp;#46;&amp;#x64;&amp;#110;&amp;#117;&amp;#111;&lt;!-- ynz --&gt;&amp;#x72;&amp;#57;&amp;#x40;&lt;!-- lfu --&gt;&amp;#x73;&amp;#x65;&lt;!-- tzg --&gt;&lt;!-- fvy --&gt;&amp;#110;&amp;#111;&amp;#x6a;&amp;#46;&amp;#x79;&amp;#x63;&amp;#110;&lt;/span&gt;&amp;#97;&amp;#110;&lt;/bdo&gt;</span></p>
</blockquote>

<p><strong>The other email rows are fine.</strong></p>
<p>Is it possible to prevent spambotEmailProtector from encoding emails on a particular website page, so it's disabled on one page, but allow it to continue to work on the rest of the website?</p>
<p>I tried opening the spambotEmailProtector.php file and tried changing some of the Encoding Options to false, but this didn't decrypt the first email in the exported CSV file either.<br /><br /></p>
<p><code>// Encoding Options - to disable an encoding method set to false;<br />$GLOBALS['SEP_ENCODING_METHODS']['decEntity']   = true;<br />$GLOBALS['SEP_ENCODING_METHODS']['hexEntity']   = true;<br />$GLOBALS['SEP_ENCODING_METHODS']['urlEncoding'] = true;<br />$GLOBALS['SEP_ENCODING_METHODS']['jsUnicode']   = true;<br />$GLOBALS['SEP_ENCODING_METHODS']['bdo']         = false;<br />$GLOBALS['SEP_ENCODING_METHODS']['comments']    = false;<br />$GLOBALS['SEP_ENCODING_METHODS']['tags']        = false;<br />$GLOBALS['SEP_ENCODING_METHODS']['jsLocation']  = true;</code></p>
<p>Below is the save to CSV file code </p>
<p><code>&lt;?php <br />require_once "C:/wamp/www/cmsbuilder_1_34_build1/cmsAdmin/lib/viewer_functions.php"; <br /><br />// load records <br />list($saveCSVRecords,) = getRecords(array( <br />'tableName' =&gt; 'directory', <br />//'where' =&gt; "paid = '1'" <br />)); <br /><br />// if the user has supplied "as_csv" in query string<br />if (@$_REQUEST['as_csv']) {<br /><br />// specify fields to output <br />$fields = array('first_name', 'last_name', 'title', 'address', 'address_2', 'city', 'state', 'zip', 'phone', 'mobile_phone', 'fax', 'toll_free', 'email', 'website_address');<br /><br />$filename = "directory_".date("Y-m-d_H-i",time()); <br />header("Content-type: application/vnd.ms-excel"); <br />header("Content-disposition: csv" . date("Y-m-d") . ".csv"); <br />header( "Content-disposition: filename=".$filename.".csv"); <br /><br />// output csv header row <br />print(join(',', $fields) . "\n"); <br /><br />// loop over records, outputting a row for each <br />foreach ($saveCSVRecords as $recCSVrecord) { <br />$row = array(); <br />foreach ($fields as $field) { <br />$value = $recCSVrecord[$field]; <br />// if this value contains a special character, quote and escape it <br />if ( preg_match('/[," \t\n]/', $value) ) { <br />$value = '"' . preg_replace('/"/', '""', $value) . '"'; <br />} <br />array_push($row, $value); <br />} <br />echo(join(',', $row) . "\n"); <br />}<br /><br />// exit -- we are finished with the page<br />exit;<br />}<br /><br />?&gt;<br />&lt;!DOCTYPE HTML&gt;<br />&lt;html&gt;<br /> &lt;head&gt;<br /><br />&lt;title&gt;CSV&lt;/title&gt;<br /> &lt;meta charset="utf-8" /&gt;<br />&lt;/head&gt;<br />&lt;body&gt;<br /><br />&lt;h3&gt;&lt;a href="?as_csv=1&amp;&lt;?php echo @$_SERVER['QUERY_STRING'] ?&gt;"&gt;Download these results in CSV format&lt;/a&gt;&lt;/h3&gt;<br /><br />&lt;/body&gt;<br />&lt;/html&gt;</code></p>

<p>Thanks, Zicky</p>]]></description>
          <pubDate>Sun, 12 Feb 2017 01:04:29 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240208#post2240208</guid>
        </item>
              </channel>
    </rss>
  