When i visit the url as http://www.example.com/Formación
then the routing should match, but its not working because i have a character ó
, how to make this ó
spanish characters compatible with the following routing in ZF?
$route = Http\Segment::factory(array(
'route' => '/Formación', //<<<<< this character must be used: ó
'defaults' => array(
'controller' => 'Application\Controller\Trainingsignup',
'action' => 'index'
),
));
$router->addRoute('traininges', $route, null);
EDIT: failed following too
'constraints' => array(
'controller' => '[a-zA-ZóäöüÄÖÜß][a-zA-ZóäöüÄÖÜß0-9_-]+',
'action' => '[a-zA-ZóäöüÄÖÜß][a-zA-ZóäöüÄÖÜß0-9_-]+',
),
EDIT: failed following too
'constraints' => array(
'controller' => '/^\p{L}[\p{L} _.-]+$/u', //or /[\p{L}]+/u
'action' => '/^\p{L}[\p{L} _.-]+$/u', //or /[\p{L}]+/u
),