We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Error mysql utf8 russian lang

Good day, Phalcon is not correctly displaying Russian text from database. Displays some characters = ???????????

Example:

Config.php:

How to fix this problem?



1.6k
Accepted
answer
edited Jul '14

I found a bug. WebDev by default creates the configuration files without a charset. Need to add services.php:

"options" => array(
    PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'
)