views:

19

answers:

2

How do I set up Doctrine to automatically run iconv (Windows-1251 to Utf-8) when fetching data?

+1  A: 

Why don't you just tell the RDBMS you're using to send the data in UTF-8? Doctrine_Connection has a setCharset method for this:

$connection->setCharset('utf8');
reko_t
A: 

setCollation() is the corresponding one.

takeshin