Re: Problem of Connection Character Sets and Collations
| From: | Eric Butera | Date: | Tue, 09 Sep 2008 13:15:12 +0000 |
| Subject: | Re: Problem of Connection Character Sets and Collations | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-279730@lists.php.net to get a copy of this message | ||
On Sat, Sep 6, 2008 at 10:41 AM, <edwardspl@ita.org.mo> wrote:
> php :
> Which command line is right ?
> 1, mysql_query("SET NAMES utf8");
> 2, mysql_query("SET NAMES utf-8");
>
> Many thank for your help !
>
> Edward.
On the php side look at this:
http://us3.php.net/manual/en/function.mysql-set-charset.php
That's recommended over set names.