Hi, I've already made a lot of research and tried many configurations but still get the same error so here is the case;
I have a phalcon MVC app running on a database and everything works fine it can retrive all data from in UTF-8 with no problem but I'm writing a micro app that retrives data from the same database and it can't ready special caracteres.
I tried: on my services.php and config,php files
"options" => array( \PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8' )
and also 'charset'=> 'utf8'
Tried this as well:
/**
- Database connection is created based in the parameters defined in the configuration file */ $di->set('db', function () use ($config) { return new DbAdapter(array( 'host' => $config->database->host, 'username' => $config->database->username, 'password' => $config->database->password, 'dbname' => $config->database->dbname, 'charset' => $config->database->charset )); });
but seams phalcon is not reading de services.php file.
Any help would be appreciated.
Thanks in advance.