I used the methods mentioned and they worked perfectly. Until recently, when my provider upgraded PHP to 5.2.11 and MySQL to the 5.0.81 community. After this change, Unicode characters were correctly extracted from the database, but all updates were corrupted, and Unicode characters were replaced with "?".
The solution was to use:
mysql_set_charset('utf8',$conn);
This was required, although we used:
SET NAMES utf8
SET CHARACTER SET utf8
Also, since we used ADOdb, we needed to find a PHP connection handle. We used the following statement:
mysql_set_charset('utf8',$adoConn->_connectionID);
source
share