On Thu, 2006-11-16 at 13:21 +0100, Martel Valgoerad wrote:
> Yes, you're absolutely right. The default regex was accepting a limited range
> of characters. I have modified it to use all UTF letters now.
>
> Please, give it a try.
I'm having doubts if I'm using this incorrectly because it still doesn't
work. If I have a router set for /test/:name and call it with /test/ä it
does not work. So I tried to urlencode ä to %C3%A4 but this doesn't work
either, IndexController noRouteAction is called instead.
> It has to be done somewhere. I think the best place for that would be in the
> Zend_Http_Request itself. Presumably in get* methods because you want to keep
> your original request data intact in case something has to be accessed in raw
> format. But maybe get methods could possibly have a flag for a programmer to
> choose if he wishes to filter the data or not. Like for example:
>
> public function getParam($key, $decode = true) {
> ...
> if ($decode) $value = urldecode($value);
> return $value;
> }
This was exactly what I was asking for. Other option is for the
programmer to always call urldecode but it would increase the amount of
code.
--
Teemu Valimaki <[EMAIL PROTECTED]>