Question

I am trying to set up a cakephp Route rule like:

Router::connect(
        '/:language/:site',
        array('controller' => 'categories', 'action' => 'index'),
        array(
            'language' => $langs,
            'site' => $siteTitles
        )
);

Where $langs looks like: en|de|ru and $siteTitles looks like: metal|metall|металл

This works fine for latin languages but with the Cyrillic version (металл) i'm getting an "Error: металлController could not be found."

Looks like the regex is not understanding the russian version.

I'm running my app with UTF-8 coding.

Was it helpful?

Solution

Problem solved.

Should have seen that coming: A simple urlencode on the strings will do.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top