Re: mysql_set_charset
| From: | Scott MacVicar | Date: | Thu, 07 Aug 2008 14:36:39 +0000 |
| Subject: | Re: mysql_set_charset | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-39736@lists.php.net to get a copy of this message | ||
Hannes Magnusson wrote:
On Thu, Aug 7, 2008 at 16:17, Ulf Wendel <ulf.wendel@phpdoc.de> wrote:The people doing it usually have to support PHP versions lower than 5.2.3, we use SET NAMES on older versions of PHP. ScottHe 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 properlyIs 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");... -Hannes