Welcome! Log In Create A New Profile

Advanced

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

July 01, 2010 11:33AM
Dear all,
I try to implement some rewrites using regular expressions and my URIs will contain Greek characters.

Trials of the REs are going ok when tested with pcretest:

[code]
[root@localhost ~]# pcretest
PCRE version 8.10 2010-06-25

re> #^[\x{0386}-\x{03FF}]+$#8
data> bv
No match
data> Τηλέ
0: \x{3a4}\x{3b7}\x{3bb}\x{3ad}

[/code]
note the 8 modifier that actually tells PCRE to do a UTF-8 matching.


Having the RE in nginx.config complains about
[code]
[emerg]: pcre_compile() failed: character value in \x{...} sequence is too large in
[/code]
which I guess means that somehow nginx calls PCRE without the PCRE_UTF8 option flag

Am I right? How can I implement these Greek character URL rewrites?

The system environment is:

* CentOS 5.4
* PCRE 8.10 with utf-8 and utf-properties enabled
* nginx 0.8.42


Cheers
Tilemahos
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: 293
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