Re: What effects MySQL connection's character set
| From: | Gunawan Wibisono | Date: | Sat, 03 Feb 2007 08:47:16 +0000 |
| Subject: | Re: What effects MySQL connection's character set | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-43017@lists.php.net to get a copy of this message | ||
what i read..
i conclusion. whenever the data is.. is always latin1 right??
if the data seem give strange type (example like japanese font).. it
will stay on latin1 or change into apropriate data
On 2/1/07, Niel Archer <niel@catweasel.org> wrote:
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 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php-- akan ada dimana mulut terkunci dan suara tak ada lagi.. saat itu gunakanlah HP untuk melakukan SMS!! -> ini aliran bedul.. bukan aliran aneh. tertawa sebelum tertawa didepan RSJ..