I can't set correct mysql encoding. I tried to execute $di->get('db')->execute("SET NAMES 'utf8'"); before $application = new \Phalcon\Mvc\Application(); $application->setDI($di); echo $application->handle()->getContent();
in my index.php file, but nothing changed and returned results from DB are not in utf8
How can I set correct utf8 encoding to mysql connection?