[wp-hackers] Unicode url rewriting using add_rewrite_rule()

Deepak Mittal dpac.mittal2 at gmail.com
Wed Dec 12 19:55:01 UTC 2012


On Thu, Dec 13, 2012 at 1:07 AM, Otto <otto at ottodestruct.com> wrote:

> On Wed, Dec 12, 2012 at 1:01 PM, Deepak Mittal <dpac.mittal2 at gmail.com>
> wrote:
> > I understand that. Browser always percent-encodes the URLs. This URL goes
> > to the regex engine (PCRE) as an ASCII string. This is the exact reason
> why
> > I need the 'u' modifier - to tell PCRE that the supplied string must be
> > treated as a Unicode string.
>
>
> That kinda doesn't make any sense. You can't have a unicode string
> there, because it will be percent encoded. So matching against unicode
> won't work anyway.
>

We are using urldecode() before matching in class-wp.php, so its not
percent encoded.


>
> -Otto
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
Regards,
Deepak Mittal,
Twitter - @dpacmittal


More information about the wp-hackers mailing list