validating utf-8 in htaccess rewrite rule

Posted by TrustWeb on Stack Overflow See other posts from Stack Overflow or by TrustWeb
Published on 2010-04-02T09:10:39Z Indexed on 2010/04/02 9:13 UTC
Read the original article Hit count: 305

i validate urls with utf-8 characters with a rewrite rule

RewriteRule ^([a-z]{2})/([a-z0-9-]{1,256})/([[:print:]]{1,256})$ index.php?language=$1&categories=$2&get_query=$3 [L]

$get_query is the point, this accepts: test!?!'"<>*+ but fails for accented chars as àèéìòù, or other utf-8

for example in wikipedia this works great: http://en.wikipedia.org/wiki/%E6%B1%89%E8%AF%AD_%E6%BC%A2%E8%AA%9E

any help? :-)

© Stack Overflow or respective owner

Related posts about apache

Related posts about mod-rewrite