<div dir="ltr">Fixed @<a href="http://trac.vtiger.com/cgi-bin/trac.cgi/changeset/13964">13964</a> - During installation explicit setting was required on DB connection since default_charset was not initialized in config.inc.php to UTF-8.<div>

<br>Regards,</div><div>Prasad<br><div class="gmail_extra"><br clear="all"><div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><b>Connect with us on: </b><a href="http://twitter.com/vtigercrm" style="color:rgb(0,0,204)" target="_blank">Twitter</a> <b>I</b> <a href="http://www.facebook.com/pages/vtiger/226866697333578?sk=wall" style="color:rgb(0,0,204)" target="_blank">Facebook</a> <b>I</b> <a href="https://blogs.vtiger.com/" style="color:rgb(0,0,204)" target="_blank">Blog</a><b> I</b> <a href="http://wiki.vtiger.com/index.php/Main_Page" style="color:rgb(0,0,204)" target="_blank">Wiki</a> <b>I </b><a href="https://discussions.vtiger.com" style="color:rgb(0,0,204)" target="_blank">Forums </a><b>I</b> <a href="https://www.vtiger.com/" style="color:rgb(0,0,204)" target="_blank">Website</a></span></div>



<br><br><div class="gmail_quote">On Mon, Dec 16, 2013 at 7:26 PM, Zygmuntowicz Michal <span dir="ltr"><<a href="mailto:m.zygmuntowicz@onet.pl" target="_blank">m.zygmuntowicz@onet.pl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<u></u>



<div style="PADDING-LEFT:10px;PADDING-RIGHT:10px;PADDING-TOP:15px" name="Compose message area">
<div><font face="Arial">Maybe the problem arises because 
DefaultDataPopulator uses the 'query' method</font></div>
<div><font face="Arial">instead of the 'pquery' call with bound parameters, 
so actual data values get embedded</font></div>
<div><font face="Arial">into a query string and therefore SET NAMES utf8 is 
required to make it work correctly.</font></div>
<div style="FONT:10pt Tahoma"><font face="Arial"></font><font face="Arial"></font><font face="Arial"></font><font face="Arial"></font> </div>
<div style="FONT:10pt Tahoma"><font face="Arial">Most other queries for 
inserting/updating data during normal workflow use pquery</font></div>
<div style="FONT:10pt Tahoma"><font face="Arial">and bound parameters and 
calling/omitting SET NAMES utf8 may have no impact there.</font></div>
<div><font face="Arial"></font> </div>
<div><font face="Arial">Another idea may be that during installation not 
all default variables have correct</font></div>
<div><font face="Arial">values and SET NAMES utf8 is not called when it 
should be, so UTF-8 characters</font></div>
<div><font face="Arial">get inserted into the database 
incorrectly.</font></div>
<div style="FONT:10pt Tahoma"><font face="Arial"></font><font face="Arial"></font><br></div>
<div style="FONT:10pt Tahoma;BACKGROUND:#f5f5f5">
<div><b>From:</b> <a title="m.zygmuntowicz@onet.pl" href="mailto:m.zygmuntowicz@onet.pl" target="_blank">Zygmuntowicz Michal</a> </div>
<div><b>Sent:</b> Monday, December 16, 2013 12:41 PM</div>
<div><b>To:</b> <a title="vtigercrm-developers@lists.vtigercrm.com" href="mailto:vtigercrm-developers@lists.vtigercrm.com" target="_blank">vtigercrm-developers@lists.vtigercrm.com</a> 
</div>
<div><b>Subject:</b> [Vtigercrm-developers] Installation and non-ASCII 
characters in thedefault data populator</div></div><div><div>
<div><font face="Arial"></font><font face="Arial"></font><br></div>
<div><font face="Arial">Hello,</font></div>
<div><font face="Arial"></font> </div>
<div><font face="Arial">during Vtiger 6 installation Polish currency and 
language names</font></div>
<div><font face="Arial">display non-ASCII characters incorrectly (I guess 
the problem relates</font></div>
<div><font face="Arial">to other languages as well). I have reviewed the 
ticket <a title="http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7784
Kliknij, trzymając wciśnięty klawisz CTRL, aby użyć łącza" href="http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7784" target="_blank">http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7784</a></font></div>
<div><font face="Arial">and added an approtiate comment.</font></div>
<div><font face="Arial"></font> </div>
<div><font face="Arial">The problem seems to be a missing call to SET NAMES 
utf8</font></div>
<div><font face="Arial">while populating default data in the 
modules/Users/DefaultDataPopulator.php file.</font></div>
<div><font face="Arial">I guess it should be called automatically, but it 
does not happen.</font></div>
<div><font face="Arial">If I insert the call manually, the default data 
gets populated correctly.</font></div>
<div><font face="Arial"></font> </div>
<div><font face="Arial">Maybe it is somehow related to mysql server 
settings. My settings are:</font></div>
<div><font face="Arial"></font> </div>
<div><font face="Arial">Server characterset:    
latin1<br>Db     characterset:    
utf8<br>Client characterset:    utf8<br>Conn.  
characterset:    utf8<br></font></div>
<div><font face="Arial">I create a database by hand before starting 
installation with the utf8 character set,</font></div>
<div><font face="Arial">but the default server character set is latin1 - 
maybe this causes the problem</font></div>
<div><font face="Arial">and requires SET NAMES utf8.</font></div>
<div><font face="Arial"></font> </div>
<div><font face="Arial">Regards,</font></div>
<div><font face="Arial">Michal Zygmuntowicz</font></div>
<div><font face="Arial"> </font></div>
<div><font face="Arial"></font> </div>
</div></div><p>
</p><hr>

<p></p>_______________________________________________<br><a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><p></p></div>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br></div></div></div>