|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-01-01 23:54 UTC] jani@php.net
-Package: Feature/Change Request
+Package: PDO related
[2017-04-24 19:10 UTC] adambaratz@php.net
-Status: Open
+Status: Closed
-Package: PDO related
+Package: PDO MySQL
-Assigned To:
+Assigned To: adambaratz
[2017-04-24 19:10 UTC] adambaratz@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 21:00:02 2025 UTC |
Description: ------------ I Couldn't find anything that replace the mysql_fetch_field function in PDO. I just found this hint: "pdo doesn't care about charsets. if you want to have your connection in unicode / utf-8 or any other encoding, you'll have to tell your database, for example using $dbh->exec('SET CHARACTER SET utf8') (mysql)" But what is with Tables like this: SET CHARACTER SET utf8; CREATE TABLE `newtable` ( `Id` int(11) NOT NULL auto_increment, `NewField` varchar(255) default NULL, `NewField2` varbinary(255) default NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; If I now SELECT something, Id and NewField is UTF8 but NewField2 is still binary (like a JPEG). Is there an option or is this not implemented?