Re: What effects MySQL connection's character set
| From: | Niel Archer | Date: | Wed, 31 Jan 2007 18:24:58 +0000 |
| Subject: | Re: What effects MySQL connection's character set | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-43016@lists.php.net to get a copy of this message | ||
Hi all
Finally identified the problem. Was pretty obvious in retrospect.
The mysqli class (Improved MySQL extension OO style) defaults to
latin1 as a character set, regardless of what PHP is using. Simple
solution is to use the set_charset method (mysqli_set_charset for non OO) on
the object, which will change the connection parameter.
Niel