<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.23543"></HEAD>
<BODY style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px"
id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop="true"
name="Compose message area">
<DIV><FONT size=2 face=Arial>Tested and confirmed to work. Thank you for the
quick fix!</FONT></DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><FONT face=Arial></FONT><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=prasad@vtiger.com
href="mailto:prasad@vtiger.com">Prasad</A> </DIV>
<DIV><B>Sent:</B> Tuesday, December 17, 2013 10:12 AM</DIV>
<DIV><B>To:</B> <A title=vtigercrm-developers@lists.vtigercrm.com
href="mailto:vtigercrm-developers@lists.vtigercrm.com">vtigercrm-developers@lists.vtigercrm.com</A>
</DIV>
<DIV><B>Subject:</B> Re: [Vtigercrm-developers] Installation and non-ASCII
characters in thedefault data populator</DIV></DIV></DIV>
<DIV><BR></DIV>
<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 style="COLOR: rgb(0,0,204)"
href="http://twitter.com/vtigercrm"
target=_blank>Twitter</A>Â <B>I</B>Â <A style="COLOR: rgb(0,0,204)"
href="http://www.facebook.com/pages/vtiger/226866697333578?sk=wall"
target=_blank>Facebook</A>Â <B>I</B>Â <A style="COLOR: rgb(0,0,204)"
href="https://blogs.vtiger.com/" target=_blank>Blog</A><B>Â I</B>Â <A
style="COLOR: rgb(0,0,204)" href="http://wiki.vtiger.com/index.php/Main_Page"
target=_blank>Wiki</A>Â <B>IÂ </B><A style="COLOR: rgb(0,0,204)"
href="https://discussions.vtiger.com"
target=_blank>Forums </A><B>I</B> <A style="COLOR: rgb(0,0,204)"
href="https://www.vtiger.com/" 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
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote><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>
<P>
<HR>
<P></P>_______________________________________________<BR>http://www.vtiger.com/</BODY></HTML>