Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19661 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24164 invoked by uid 1010); 17 Oct 2005 13:00:44 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 24149 invoked from network); 17 Oct 2005 13:00:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Oct 2005 13:00:44 -0000 X-Host-Fingerprint: 85.92.69.73 iko.gotobg.net Linux 2.4/2.6 Received: from ([85.92.69.73:59781] helo=iko.gotobg.net) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 34/B5-22302-970A3534 for ; Mon, 17 Oct 2005 09:00:42 -0400 Received: from cpanel by iko.gotobg.net with local (Exim 4.52) id 1ERUbO-0006mq-Lo; Mon, 17 Oct 2005 16:00:30 +0300 Received: from 217.75.131.227 ([217.75.131.227]) by hristov.com (Horde MIME library) with HTTP; Mon, 17 Oct 2005 15:00:30 +0200 Message-ID: <20051017150030.jqv9bv9fjqlcco4k@hristov.com> Date: Mon, 17 Oct 2005 15:00:30 +0200 To: scuzzy@reverseorder.net Cc: internals@lists.php.net References: <20051017092409.M27759@reverseorder.net> In-Reply-To: <20051017092409.M27759@reverseorder.net> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) Sender: X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - iko.gotobg.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [32001 32569] / [47 12] X-AntiAbuse: Sender Address Domain - hristov.com X-Source: /usr/local/cpanel/3rdparty/bin/php X-Source-Args: /usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/base/horde/imp/compose.php X-Source-Dir: :/base/horde/imp Subject: Re: [PHP-DEV] [PATCH] patch to make mysql select correct encoding on client libraries. From: php@hristov.com (Andrey Hristov) Hi, the patch did not go through :( Andrey Quoting scuzzy : > Hi, > I've attached a patch, that will allow people to be able to change the client > default encoding type, as this was not possible before. I looked through the > php mysql client source, and found no traces of something that could actually > set the default client encoding type. > basically mysql_options(&myHadle, MYSQL_SET_CHARSET_NAME, "utf8"); or > whatever > charset you choose. > It reads the option from the php.ini file, which I've also patched to include > the line required, but is commented by default: > ; mysql.default_character_set = "utf8" > > When it's commented, it falls back to the mysql client library > default of latin1. > I've read a few forums, and this is apparently a common problem, and I just > thought I'd lend a hand to help you guys out. I'm sure you get inundated with > stuff like this all the time. > Anyway. Take a look at the patch, it's really simple, but it helped us out as > a company quite a lot. (www.complinet.com) > I hope it helps. > Thanks > Daine Mamacos. > > > -- > random signature > > >