We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Pdo\Oracle doesn't take 'charset' => 'uft8'

Hi!, I'm setting: $config = new \Phalcon\Config(array( 'database' => array( "dbname" => "//", "username" => "user", "password" => "pass", 'charset' => 'utf8', ) ));

new Phalcon\Db\Adapter\Pdo\Oracle($config);

but, when I make a query doesn't print the ñ,á,é,í,ó,ú

Have you copy and pasted that code? It's UTF8, not UFT8. I don't use Oracle but based on this table from the Oracle documentation, this should work:

$config = new \Phalcon\Config(array( 'database' => array( "dbname" => "//", "username" => "user", "password" => "pass", 'charset' => 'utf8', ) ));


Hi Sid Roberts, in my code I've: "charset" => "utf8", was my mistake writing the question.