peony2012 / urlrewritefilter

Automatically exported from code.google.com/p/urlrewritefilter
Other
0 stars 0 forks source link

Improve UTF8 related examples #88

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I found how to do this just before submitting an improvement request!

There's no explicit way to re-encode the rewritten URL when using a forwarding 
rule. This is needed with URLs that contain utf8 characters. 

Example:

<rule enabled="true">
       <from>^/(jentenavn|guttenavn)/([\p{L}\.' ]+)$</from>
       <to>/name_info.php?info1=${escape:$2}&amp;gender1=$1</to>
</rule>

Invoked url: www.nymbler.com/jentenavn/Synøve
Expected rewritten url: 
www.nymbler.com/name_info.php?info1=Syn%C3%B8ve&gender1=jentenavn

Original issue reported on code.google.com by fschro...@gmail.com on 8 Mar 2011 at 8:21

GoogleCodeExporter commented 9 years ago

Original comment by p...@tuckey.org on 2 Jul 2012 at 11:06