[pmwiki-users] Searching with Unicode ranges

Maxim maxim at smspower.org
Sun Jan 10 10:37:04 CST 2010


If I attempt to search (or pagelist) using a range of characters in
English, it works fine:

http://www.pmwiki.org/wiki/PmWikiJa/PmWikiJa?action=search&q=name%3DPmWikiJa%2F[A-Z]*

If I use Unicode characters in that range, things go wrong:

http://www.pmwiki.org/wiki/PmWikiJa/PmWikiJa?action=search&q=name%3DPmWikiJa%2F[%E3%82%A2-%E3%82%A4]*

Exact matches work fine:

http://www.pmwiki.org/wiki/PmWikiJa/PmWikiJa?action=search&q=name%3DPmWikiJa%2F%E3%82%A2*

It seems to be expanding the Unicode subrange that is searched. Any
suggestions on how to tackle this? On
http://php.net/manual/en/function.preg-match.php someone commented
that one ought to pass the u modified to correctly match Unicode
subranges. Where is the right place for that? Is it there or not?

Maxim



More information about the pmwiki-users mailing list