<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged encode</title>
<link>https://overflow.efficy.io/?qa=tag/encode</link>
<description>Powered by Question2Answer</description>
<item>
<title>Wrong character incoding when exporting Efficy Data in a CSV file usin DataSynchroRemote</title>
<link>https://overflow.efficy.io/?qa=2611/wrong-character-incoding-exporting-efficy-datasynchroremote</link>
<description>&lt;p&gt;Hello Everyone, &lt;/p&gt;

&lt;p&gt;For one of my projects, I have to export Efficy data into a csv file using the DataSynchroRemote tool and I noticed during my tests that some special characters are not propely incoded in my csv file:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=4557812496703107251&quot; alt=&quot;&amp;quot;5ème SENS&amp;quot; is correctly incoded in Efficy Database&quot;&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=6767383536817817261&quot; alt=&quot;Data exported in csv file&quot;&gt;&lt;/p&gt;

&lt;p&gt;I tried to encode those values using Js functions like encodeUri (for example) but without success. &lt;/p&gt;

&lt;p&gt;Do someone have an idea on how I could do? &lt;/p&gt;

&lt;p&gt;Kr,&lt;/p&gt;

&lt;p&gt;Prince &lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2611/wrong-character-incoding-exporting-efficy-datasynchroremote</guid>
<pubDate>Thu, 13 Jul 2017 08:52:42 +0000</pubDate>
</item>
<item>
<title>Template Script Return value containing $$ENCODE$$</title>
<link>https://overflow.efficy.io/?qa=1440/template-script-return-value-containing-encode</link>
<description>&lt;p&gt;Dear All,&lt;/p&gt;

&lt;p&gt;I get the following Template Script from Efficy France and there is a particularity in it.&lt;br&gt;
It return the value $$ENCODE$$ ... so what is it?&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;/*
usage
[$RunScript(name=&quot;GetListeParticipants1&quot;, file=&quot;DMS_CRSIPP&quot;,TypeResultat=&quot;var&quot;)]
var= ['NOMPRENOMFONCTION'] 
*/
function GetListeParticipants1(ContextHandle) {
                var K_DOCU = Database.GetFieldValue(ContextHandle, 'K_DOCUMENT')

                var Type = Variables.Values('TypeResultat')

                var QueryHandle;
                var SQLQuery = &quot; SELECT CONTACTS.K_CONTACT, CONTACTS.NAME,CONTACTS.FIRSTNAME, &quot; +
                               &quot; CONT_COMP.JOBTITLE &quot;+
                               &quot; from &amp;lt;#table name = 'DOCU_CONT'&amp;gt; DOCU_CONT &quot;+
                               &quot; INNER JOIN &amp;lt;#table name = 'CONTACTS'&amp;gt; CONTACTS &quot;+
                               &quot; ON DOCU_CONT.K_CONTACT = CONTACTS.K_CONTACT &quot;+
                               &quot; LEFT OUTER JOIN &amp;lt;#table name = 'CONT_COMP'&amp;gt; CONT_COMP &quot;+
                               &quot; ON (CONTACTS.K_CONTACT = CONT_COMP.K_CONTACT AND CONT_COMP.D_END IS NULL AND CONT_COMP.MAIN = '1') &quot;+
                               &quot; LEFT OUTER JOIN &amp;lt;#table name = 'COMPANIES'&amp;gt; COMPANIES &quot;+
                               &quot; ON CONT_COMP.K_COMPANY = COMPANIES.K_COMPANY &quot; +
                               &quot; where DOCU_CONT.K_DOCUMENT = :PARAM1&quot;;

                var Result='';

                var QueryContextHandle = Database.OpenTemporaryContext;
                    var ResultDS = Database.ExecuteSystemSQLQuery(QueryHandle, QueryContextHandle, SQLQuery, K_DOCU, true, true, 0);
                    ResultDS.First;
                    while (!ResultDS.Eof) {
                        var RESULTTEMP=ResultDS.FieldByName('JOBTITLE').AsString;
                        if (Type=='NOMPRENOMFONCTION' &amp;amp;&amp;amp; RESULTTEMP &amp;lt; 64) 
                            Result = Result +ResultDS.FieldByName('NAME').AsString +' '+ResultDS.FieldByName('FIRSTNAME').AsString +'[$LF]'+ResultDS.FieldByName('JOBTITLE').AsString +'[$LF]'+'[$LF]';
                        else
                            Result = Result +ResultDS.FieldByName('NAME').AsString +' '+ResultDS.FieldByName('FIRSTNAME').AsString +'[$LF]'+ResultDS.FieldByName('JOBTITLE').AsString +'[$LF]';
                        ResultDS.Next   
                    }
                return &quot;$$ENCODE$$&quot;+Result;
}
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1440/template-script-return-value-containing-encode</guid>
<pubDate>Tue, 22 Mar 2016 08:48:40 +0000</pubDate>
</item>
</channel>
</rss>