Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39737 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15031 invoked from network); 7 Aug 2008 14:37:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Aug 2008 14:37:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 88.198.8.16 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 88.198.8.16 bigtime.backendmedia.com Linux 2.6 Received: from [88.198.8.16] ([88.198.8.16:43283] helo=bigtime.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B2/56-29324-7980B984 for ; Thu, 07 Aug 2008 10:37:12 -0400 Received: from localhost (unknown [127.0.0.1]) by bigtime.backendmedia.com (Postfix) with ESMTP id 817AA1EBC019; Thu, 7 Aug 2008 14:38:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from bigtime.backendmedia.com ([127.0.0.1]) by localhost (bigtime.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YLY7yrUgdFPz; Thu, 7 Aug 2008 16:38:22 +0200 (CEST) Received: from [192.168.80.139] (unknown [195.226.16.50]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by bigtime.backendmedia.com (Postfix) with ESMTP id F287C1EBC014; Thu, 7 Aug 2008 16:38:21 +0200 (CEST) Cc: "Ulf Wendel" , "Stanislav Malyshev" , "PHP Internals" Message-ID: To: "Hannes Magnusson" In-Reply-To: <7f3ed2c30808070729w67f2bcd6nd8380724faae8180@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v928.1) Date: Thu, 7 Aug 2008 16:34:53 +0200 References: <4899D1F2.2060101@zend.com> <4899F71D.8010306@phpdoc.de> <489B03FB.9070308@phpdoc.de> <7f3ed2c30808070729w67f2bcd6nd8380724faae8180@mail.gmail.com> X-Mailer: Apple Mail (2.928.1) Subject: Re: [PHP-DEV] mysql_set_charset From: mls@pooteeweet.org (Lukas Kahwe Smith) On 07.08.2008, at 16:29, 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");... yes .. most people do it for historical reasons, or because they did not want to clutter their libraries with function_exists() calls. regards, Lukas Kahwe Smith mls@pooteeweet.org