RewriteRule and enabling pcre UTF-8 mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

I'm having a problem matching a single character in case of UTF8 characters (hebrew in my case).Â

With rewrite rule (sorry for the hebrew in the example, but whenever you see '?' it's a sign that it's not good :):
when going toÂ/users/××××××
I see in the logs:
go-ahead with /var/www/html/users/?/?××××× [OK]Â

After searching the pcre docs, I've found that I have to enable UTF-8 mode. In nginx I can do it like this:
rewrite (*UTF8)^/users/(.)(.*) users/$1/$2 last;

But the (*UTF8) syntax causes a syntax error in httpd 2.2.3 (CentOS 5.x).

Any ideas how to enable UTF-8 mode in RewriteRule?

Thanks in advance
--
Haim

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux