Here is a way to make it work. First, on the /etc/my.cnf, you need to be sure that [client] section has a option default-character-set = utf8 ( or what you need ) Then, using php5-mysqli instead of php4-mysql will solve the problem. -- Michael Scherer