Re: svn: /phpdoc/en/trunk/reference/pdo_mysql/ reference.xml
| From: | Ferenc Kovacs | Date: | Tue, 14 Jun 2011 15:21:32 +0000 |
| Subject: | Re: svn: /phpdoc/en/trunk/reference/pdo_mysql/ reference.xml | ||
| References: | 1 | Groups: | php.doc.cvs |
| Request: | Send a blank email to doc-cvs+get-8270@lists.php.net to get a copy of this message | ||
On Tue, Jun 14, 2011 at 5:08 PM, Adam Harvey <aharvey@php.net> wrote:
> aharvey Tue, 14 Jun 2011 15:08:42 +0000
>
> Revision:
> http://svn.php.net/viewvc?view=revision&revision=312154
>
> Log:
> Per a suggestion from Philip on IRC, show how to work around the charset
> DSN
> parameter being ignored with pdo_mysql before PHP 5.3.6, based on a user
> note
> by Davy Defaud.
>
>
AFAIK that isn't an equally good workaround
see http://bugs.php.net/47802
"This should however be made clear in the documentation: Executing SET NAMES
doesn't tell anything to the client library (libmysql / mysqlnd used by PHP)
so they can't do proper encoding. Therefore only Latin 1, Utf-8 and other
encodings using lower 7 bits in an ASCII compatible way can be used safely.
For other encodings the mentioned option, introduced later in 5.3.6 should
be used."
Tyrael