ID: 43891
User updated by: mynameismrburns at yahoo dot com
-Reported By: mynameismrburns at yahoo dot co
+Reported By: mynameismrburns at yahoo dot com
Status: Open
Bug Type: Feature/Change Request
Operating System: any
PHP Version: 5.2.5
New Comment:
just corrected my email address
Previous Comments:
------------------------------------------------------------------------
[2008-01-18 21:04:48] mynameismrburns at yahoo dot com
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?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43891&edit=1