Welcome! Log In Create A New Profile

Advanced

Re: problem with PCRE matching, utf-8, Greek, rewrite

Maxim Dounin
September 25, 2010 05:20AM
Hello!

On Sat, Sep 25, 2010 at 11:43:48AM +1000, mat h wrote:

> When attempting to use *UTF8 I always receive.
> [emerg]: pcre_compile() failed: (*VERB) not recognized in
> "(*UTF8)^/([^/^.]+)(?:/?)(?:index([0-9]*)\.html?)?$" at
> "8)^/([^/^.]+)(?:/?)(?:index([0-9]*)\.html?)?$" in
> /etc/nginx/sites-enabled/nexusddl.com:85
>
> Yet my PCRE has UTF-8 support, tested it in PHP (both nginx and php
> compiled against PCRElib included in debian)

You need at least pcre 7.9 for (*UTF8) support.

http://www.pcre.org/changelog.txt

[...]

> >                        if ($request_uri ~ "(*UTF8)^(.*)[\\?|&]filename=([%
> > ,a-zA-Z0-9\x{386}-\x{3ff}_\-\.]+)(&.*)?$") {
> >                                set $fn $2;
> >                        }

Note that (*UTF8) is meaningless here as $request_uri doesn't
contain utf-8 characters, it's urlencoded.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

problem with PCRE matching, utf-8, Greek, rewrite

tmanolat July 01, 2010 11:33AM

Re: problem with PCRE matching, utf-8, Greek, rewrite

Maxim Dounin July 01, 2010 01:18PM

Re: problem with PCRE matching, utf-8, Greek, rewrite

tmanolat July 02, 2010 03:48AM

Re: problem with PCRE matching, utf-8, Greek, rewrite

flickhorn September 23, 2010 03:46AM

Re: problem with PCRE matching, utf-8, Greek, rewrite

tmanolat September 23, 2010 05:12AM

Re: problem with PCRE matching, utf-8, Greek, rewrite

mat h September 23, 2010 04:02AM

Re: problem with PCRE matching, utf-8, Greek, rewrite

mat h September 24, 2010 09:48PM

Re: problem with PCRE matching, utf-8, Greek, rewrite

Maxim Dounin September 25, 2010 05:20AM

Re: problem with PCRE matching, utf-8, Greek, rewrite

tmanolat September 25, 2010 10:46AM

Re: problem with PCRE matching, utf-8, Greek, rewrite

Weibin Yao July 01, 2010 10:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 162
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready