Hi,
Logical, I glanced at the code and it only extracts the DSN and then creates its own PDO instance. I forgot.
Have you tried:
R::exec('SET NAMES [yourcharset] ');
http://dev.mysql.com/doc/refman/5.0/en/charset-connection.htmlIf that does not work, open the source code and comment out:
$this->setEncoding();
in the __construct function of RPDO.
In the new version of RedBeanPHP (4.1) you will be able to set a PDO instance.
Sorry for the inconvenience. RedBeanPHP has been designed to solely use UTF8,
because this kills an entire class of bugs and security issues (relating to XSS).
However if you have a legacy database I can understand this is a bit of a problem.
However, I believe that UTF8 is really a better charset and maybe the best solution to
the problem is to convert your database:
http://makezine.com/2007/05/08/mysql-database-migration-latin/Hope this helps,
cheers,
Gabor