在 Zend Framework 2 中,我尝试使用其中包含 UTF8 字符的路由,但没有任何运气。使用 UTF8 字符时,我总是收到错误“请求的 URL 无法通过路由匹配。”
我的路线如下所示:
'contact-us' => array(
'type' => 'literal',
'options' => array(
'route' => '/kundtjänst/',
'defaults' => array(
'controller' => 'contact-us',
'action' => 'index',
),
),
),
而且我确信这是给我带来问题的“ä”字符,因为当我将其取出(并更改 URL)时,它可以工作。如何在 ZF2 的路线中使用这些字符(瑞典语、挪威语和爱沙尼亚语)?