Kosta Kontos
unread,Jul 16, 2008, 3:03:14 PM7/16/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Php Object Generator
Hi guys
I've read through all the posts I can find in this group that cover
specifying a character encoding.
Most notably, you suggest executing "SET NAMES 'UTF8'" before every
client connection, which can be done by editing the class.database.php
file.
Although this solution is great for people who don't have access to
the mysql server settings, I'm wondering how you would advise this
problem be solved byr those of us who do have access.
For example, I went and edited my.cnf and added the following under
[client]:
...
[client]
...
default-character-set = utf8
...
Then I restarted mysql server, and when I check all the server
settings for character sets, I see that character_set_client,
character_set_connection and character_set_results are all set to
utf8.
Adding an additional line under [mysqld]: ... character_set_server =
utf8 ... also changed character_set_server and character_set_database
to utf8, effectively enforcing utf8 across the board.
Does this mean that I do not need to put that line in the
class.database.php file? I hope this is the case, but could you please
confirm.
Thanks for an awesome piece of software.