Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40094 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10613 invoked from network); 26 Aug 2008 15:04:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Aug 2008 15:04:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.14 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 209.85.217.14 mail-gx0-f14.google.com Received: from [209.85.217.14] ([209.85.217.14:48187] helo=mail-gx0-f14.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 06/A9-03121-C6B14B84 for ; Tue, 26 Aug 2008 11:04:13 -0400 Received: by gxk7 with SMTP id 7so3187107gxk.23 for ; Tue, 26 Aug 2008 08:04:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=7YBaoX7g4bx9Y4aEYDf1Y+Iq4Rv5kRfeI4iWOLEIT20=; b=Tsek97oNWkaNPS7yz7/52U2A8lUa4H07L+TCUg2JHRbLyg2Q9Szo/97ENAHrbiJdI9 9GX3WsFiJpBe8ZtGwCstdwOIE1qg/fI6x4g5iTkZGUYZ8ol71DyU8IMPPfqqLQAnnoOa 6poLUsEHxoFBk5kRZ7DUygCWCqtp8kl0MgDE0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=bcDpS0w1PeiMt0uGeldy/BOlT3lvKLcqi43Pdn9pZQchrYfM0UfgUfDXUl5obO14dw BYJZvJNE5+lvga3KYvd+b+MsPg46XSbY6KHwb9Cx1Qgco3nYV2mS5wkIy4SUJ95yOh7y 1rdW/A1L1cYBDL0HjS1L2LksRxFrsU0W7Ty3Y= Received: by 10.150.122.13 with SMTP id u13mr9389837ybc.63.1219763049456; Tue, 26 Aug 2008 08:04:09 -0700 (PDT) Received: by 10.150.186.11 with HTTP; Tue, 26 Aug 2008 08:04:09 -0700 (PDT) Message-ID: Date: Tue, 26 Aug 2008 19:04:09 +0400 To: "Hannes Magnusson" Cc: "Ulf Wendel" , "Stanislav Malyshev" , "PHP Internals" In-Reply-To: <7f3ed2c30808070729w67f2bcd6nd8380724faae8180@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4899D1F2.2060101@zend.com> <4899F71D.8010306@phpdoc.de> <489B03FB.9070308@phpdoc.de> <7f3ed2c30808070729w67f2bcd6nd8380724faae8180@mail.gmail.com> Subject: Re: [PHP-DEV] mysql_set_charset From: indeyets@gmail.com ("Alexey Zakhlestin") On Thu, Aug 7, 2008 at 6:29 PM, Hannes Magnusson wrote: > On Thu, Aug 7, 2008 at 16:17, Ulf Wendel wrote: >> He explained to me that using SET NAMES is what is not recommended when >> using libmysql because: >> >> - there is no verification if the client knows the charset >> - the internal mysql->charset field will not be set properly > > Is this something we should add to the mysql[i]_set_charset() docs? > I've seen *bunch* of people doing mysql[i]_query("SET NAMES UTF8");... Is it possible to add similiar functionality to pdo_mysql? Probably in the form of custom option. -- Alexey Zakhlestin http://blog.milkfarmsoft.com/