
Originally Posted by
Ms_X
Create a new file for it:
/includes/extra_configures/my_db_charset.php
Code:
<?php define('DB_CHARSET', 'utf-8');
Be sure to do that in your /RENAMED-ADMIN/includes/extra_configures folder too!!!!!
If you don't, then your admin activity won't be treated as utf-8.

Originally Posted by
Ms_X
So the question is what to do now? I looked in phpmyadmin, when i see the structure of my database, all the tables collation is set to "latin1_general_ci" and at the end of the list on the last row (where one can see the number of pages) I see in collation field "utf8_general_ci".
Well, I guess that's possible if you hadn't set the /zc_install/includes/installer_params.php file to use utf-8 as well:
Code:
<?php define('DB_CHARSET', 'utf8');
I'm pretty sure you want to use "utf8", not "utf-8" when it comes to the DB_CHARSET. I think using "utf-8" would apply only in the language file.

Originally Posted by
Ms_X
the name my_db_charset.php should be written as my_db_charset.php or instead of my_db the name of my db should be written?
The filename doesn't matter. It could be called "fred.php" as long as the content inside is correct.

Originally Posted by
Ms_X
and another question, do I need to save any fileas as without BOM?
Yes. ALL files that contain utf-8 encoding in them need to be saved as UTF8-without-BOM.
Bookmarks