I have a little question regarding the routing with Zend Framework 2. URLs with "normal" letters are working fine and I get to my sides, but for example an URL with characters like á or whitespaces /test/some characters
/test/héllo
won't work and I get a 404-Error. When I remove the whitespaces in the url or replace the special character é with normal "e" I will get my url too.
So I think the problem is in my module.config.php with the constraints. How can I define these special characters to reach the URLs? Hope you can help me!
module.config.php URL Segment
'chemistry' => array(
'type' => 'Segment',
'options' => array(
'route' => '[/:id[/:name]]/chemistry/page[/:page]',
'constraints' => array(
'id' => '[0-9]*',
'name' => '[a-zA-Z][a-zA-Z-]*',
'page' => '[0-9]*'
),
'defaults' => array(
'action'=> 'chemistry',
'id' => '1',
'name' => 'Messi',
'page' => '1'
),
),
),