|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-28 20:43 UTC] sniper@php.net
[2005-02-28 21:16 UTC] RoyBerkeveld at gmail dot com
[2005-03-08 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 13:00:02 2025 UTC |
Description: ------------ When a script's internal character encoding is set to UTF-8, and a MySQL Query is formed, the result did not contain UTF-8 encoded data. This changed when upgrading from PHP 5.0.2 to 5.0.3 - it worked fine in 5.0.2. It does not appear MySQL-related since nothing was changed to the databases. All databases are UTF-8 encoded and the standard character set is also UTF-8. I am using MySQL 4.1.9 on Apache 2 Reproduce code: --------------- mb_http_output("UTF-8"); mb_internal_encoding("UTF-8"); // just an example, can be any query $result = mysql_query("select * from someplace"); $row = mysql_fetch_row($result); echo $row[0]; Expected result: ---------------- UTF-8 encoded data with all characters intact Actual result: -------------- Missing characters due to conversion of UTF-8 database data to Latin-1