set names utf8
Posted: Fri Mar 24, 2006 6:41 pm
Hello,
I just started looking the CMSms code. its not so easy for me (like a developer) to understand how the structure of the classes is generated to create this really simple to use CMS.
That's what I tried to do was to just 'set names utf8' to mysql server. I solve my problem but I lose 2 hours to understand how to use adodb and where to put my 2 lines of code.
So the solution is:
on file include.php, line 142 add theese lines:
$db_set=$gCms->GetDb();
$db_set->Execute('set names utf8');
I hope you will create better way to control the encoding in the future release of CMSms.
My questions here are:
Are theese lines included in both frontend and admin site of CMSms and are they the first query to the mysql server?
Best regards for the great work.
I just started looking the CMSms code. its not so easy for me (like a developer) to understand how the structure of the classes is generated to create this really simple to use CMS.
That's what I tried to do was to just 'set names utf8' to mysql server. I solve my problem but I lose 2 hours to understand how to use adodb and where to put my 2 lines of code.
So the solution is:
on file include.php, line 142 add theese lines:
$db_set=$gCms->GetDb();
$db_set->Execute('set names utf8');
I hope you will create better way to control the encoding in the future release of CMSms.
My questions here are:
Are theese lines included in both frontend and admin site of CMSms and are they the first query to the mysql server?
Best regards for the great work.