各都市名がリンクされ、この都市のページを参照している都市のリストを取得したいのですが、次のようになります。
リンク(ビュースクリプトで作成)は次のようになります。
http://project.loc/catalog/Berlin (in the HTML source code url-encoded: Berlin)
http://project.loc/catalog/Erlangen (in the HTML source code url-encoded: Erlangen)
http://project.loc/catalog/Nürnberg (in the HTML source code url-encoded: N%C3%BCrnberg)
「ベルリン」、「エアランゲン」などは機能しますが、都市名に「ニュルンベルク」のようなドイツ語の特殊文字(、、、、、、、、または)が含まれている場合、404エラーがä
発生しますö
。ü
Ä
Ö
Ü
ß
404エラーが発生しましたページが見つかりません。要求されたURLはルーティングによって一致しませんでした。利用可能な例外はありません
なんで?そして、これを機能させる方法は?
前もって感謝します!
編集:
私のルーター設定:
'router' => array(
'routes' => array(
'catalog' => array(
'type' => 'literal',
'options' => array(
'route' => '/catalog',
'defaults' => array(
'controller' => 'Catalog\Controller\Catalog',
'action' => 'list-cities',
),
),
'may_terminate' => true,
'child_routes' => array(
'city' => array(
'type' => 'segment',
'options' => array(
'route' => '/:city',
'constraints' => array(
'city' => '[a-zA-ZäöüÄÖÜß0-9_-]*',
),
'defaults' => array(
'controller' => 'Catalog\Controller\Catalog',
'action' => 'list-sports',
),
),
'may_terminate' => true,
'child_routes' => array(
// ...
),
),
),
),
),
),