Doc #52453 [Ver->Csd]: Connection charset seems arbitrary
| From: | kalle@php.net | Date: | Sun, 24 Oct 2010 20:45:42 +0000 |
| Subject: | Doc #52453 [Ver->Csd]: Connection charset seems arbitrary | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-5403@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52453&edit=1
ID: 52453
Updated by: kalle@php.net
Reported by: jeroen at asystance dot nl
Summary: Connection charset seems arbitrary
-Status: Verified
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
Operating System: Linux
PHP Version: 5.3.3
-Assigned To:
+Assigned To: kalle
Block user comment: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2010-10-24 22:45:36] kalle@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&revision=304709
Log: Fixed #52453 (Connection charset seems arbitrary)
------------------------------------------------------------------------
[2010-08-18 12:44:52] andrey@php.net
the doc team should take over this one
------------------------------------------------------------------------
[2010-08-18 12:44:19] andrey@php.net
You can overwrite the charset, when using mysqlnd, by calling
mysqli_options on a connection created with mysqli_init() but still not
connected with mysqli_real_connect(). In this case mysqlnd won't assume
the server default charset.
------------------------------------------------------------------------
[2010-08-13 12:43:18] jeroen at asystance dot nl
A ha! That's exactly the documentation I was looking for online. I've
changed the type to "documentation problem" and think the proper way to
resolve this bug is to add this documentation.
I was using mysqlnd by the way (standard setting on ubuntu I guess).
------------------------------------------------------------------------
[2010-08-13 12:00:27] andrey@php.net
Are you using mysqlnd or libmysql. Libmysql uses its default charset, or
set in my.cnf or by explicit call to mysqli_options before calling
mysqli_real_connect, but after mysqli_init().
If you use mysqlnd, in this case mysqlnd always assumes the server
default charset. This charset is sent during connection
hand-shake/authentication and mysqlnd assumes it.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/bug.php?id=52453
--
Edit this bug report at http://bugs.php.net/bug.php?id=52453&edit=1